A little over a year ago I stumbled across a Google code sample comparing JSON and XML that caught my eye for a reason completely unrelated to Google's intended subject: the sample JSON-encoded data was larger than its XML equivalent! This represented an unlikely exception to the generally-accepted view that JSON is the leaner data format. Still, I was recently wondering if others have made any serious efforts to point out the fact that XML can be leaner than JSON...
atxgeek
just one more geek in a sea of austin techies
Showing posts with label JSON. Show all posts
Showing posts with label JSON. Show all posts
July 31, 2012
June 26, 2011
JSON bigger than XML??? #MarkupGeek
Continuing to chip away at my little Android programming projects, this week I put together some code to consume data from a JSON-formatted web feed. JSON is more streamlined than XML and also happens to avoid certain cross-domain security roadblocks. This means JSON is often a great choice for encapsulating objects and data that are destined for transport via web services over cell phone data plans. It was a surprise, therefore, when I unexpectedly ran across an example of XML that was less verbose (smaller!) than its JSON equivalent...
Subscribe to:
Posts (Atom)