Skip to content
Simple jQuery plugin to convert XML to JSON.
JavaScript CoffeeScript Batchfile
Branch: master
Clone or download
Pull request Compare This branch is 45 commits ahead of Sorebo:master.
sergeyt Merge pull request #2 from david-nielsen/master
Added an additional condition to check if xml.attributes is null, ins…
Latest commit 3d62517 Nov 18, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Added an additional condition to check if xml.attributes is null, ins… Nov 17, 2016
test compatibility with node-xml2js Dec 8, 2013
.bowerrc bower config Dec 8, 2013
.gitignore karma config Dec 8, 2013
Gruntfile.coffee using grunt-karma Dec 8, 2013
README.markdown bump version May 14, 2014
bower.json bump version May 14, 2014
karma-debug.cmd tests Dec 8, 2013
karma.conf.js fixing build May 14, 2014
package.js bump version Sep 22, 2014
package.json chore: release v0.0.8 Sep 22, 2014
smart.json bump version Sep 22, 2014
versions.json fix required by meteor Sep 22, 2014

README.markdown

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);
    }
});
You can’t perform that action at this time.