View on GitHub


simple javascript method to convert xml to json

Download this project as a .zip file Download this project as a tar.gz file

Simple XML to JSON

I needed a very simple XML to JSON formatter and couldn't find a standard implementation. So I settled on a very simple format which creates new nodes from node attributes in the format [node-name]@[attribute-name], this works out quite nicely especially if your using the JSON in an HTML templating language such as mustache.
Give it a go...

Having trouble with Pages? Check out the documentation at or contact and we’ll help you sort it out.