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...