When given a choice of transportable data structures, I pick JSON over XML. I always liked the promises of XML however the amount of processing and external libraries needed to parse XML gives me a headache. Whereas JSON is pretty darn close to programming language’s native structure so parse time is greatly reduced. Plus, JSON files are much smaller than XML.
One thing I did like about XML is the ability to perform advanced queries to data structure using XPath. Doing a quick search for an XPath equivalent for JSON turned up nothing so I plan on creating a jPath object to do exactly this.
If anyone knows of a script that can already do this, please shoot me an email at [bryan at bluelinecity dot com]. Thanks!
No Comments »