jquery-xml2json
Version:
jQuery plugin to convert XML to JSON.
20 lines (14 loc) • 853 B
Markdown
[](https://drone.io/github.com/sergeyt/jQuery-xml2json/latest)
[](https://david-dm.org/sergeyt/jQuery-xml2json)
[](https://david-dm.org/sergeyt/jQuery-xml2json#info=devDependencies)
#jQuery xml2json
[](https://nodei.co/npm/jquery-xml2json/)
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);
}
});