jquery-xml2json

jQuery plugin to convert XML to JSON.

Usage no npm install needed!

<script type="module">
  import jqueryXml2json from 'https://cdn.skypack.dev/jquery-xml2json';
</script>

README

Build Status Dependency Status devDependency Status

jQuery xml2json

NPM

A simple jQuery plugin that converts XML data, typically from $.ajax requests, to a valid JSON object.

Here's a simple usage example:

$.ajax({
    url: 'data/test.xml',
    dataType: 'xml',
    success: function(response) {
        json = $.xml2json(response);
    }
});