Another Vote For JSON over XML
May 9, 2007 · No Comments
By now, anyone who reads this know how much I really like JSON and how much I am becoming less and less enamoured with XML.
I just ran into a problem where XML was the problem. A client had data stored in a cookie as encrypted and encoded XML (not WDDX) and it was just too big for the browser to handle. The cookie ended up being truncated and just got messy. I made a quick (less than five minute) conversion from storing as XML to storing as JSON. Poof, all the issues went away.
The savings? The JSON string uses less than half the space than the XML. See, I told you JSON is more efficient. XML, your days are numbered.
Tags: AJAX























0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment