Dont use JSON if you should use XML.
Dont use JSON if you should use XML.
http://geekandpoke.typepad.com/geekandpoke/2012/03/thank-god...
The reason i'm using JSON is for the fact that's it's fast to parse, compact, and lightweight, compared to XML. Now the reason for needing the xpath/xslt/xsd version of json is not principaly because it's a serialization format, but because it's a serialization format used in almost any modern web API. Experience shows that using JSON for web APIs is a good choice. Saying "you should've used XML" may have been relevant 5 years ago, but i think it's time to assume the fact that JSON is now so much used, that it needs the same kind of tools that xml has had almost from the start.
Something like SQLite work wells for purposes like these.