3 ms·
IMO the biggest advantage of JSON on the web is a simple one: fewer bytes on the wire. EDIT: also the concise yet all-encompassing nature of its home at http:/
by JonnieCache 16y ago
IMO the biggest advantage of JSON on the web is a simple one: fewer bytes on the wire.
EDIT: also the concise yet all-encompassing nature of its home at http://www.json.org http://www.json.org
- kenjackson 16y agoIs this really true? It seems like they would be remarkably close in number of bytes on the wire, accept in cases where you generate really poor XML. In fact, in some basic examples I quickly looked at, I think XML actually puts fewer bytes on the wire. I do have to agree with the author though. This feels like a really "meh" discussions.
- xiongchiamiov 16y agoIf the actual data is small compared to the tag names, then XML will be significantly larger.
- JonnieCache 16y agoAlso if the data scheme is very simple and only for consumption by the person who designed it, one can eschew tag names altogether and just have an array and rely of the order of elements to define meaning.