4 ms·
JSON if you need SPEED at the client or server ends. If speed isn't a major factor than XML may win out, depending on the complexity of the data your sending ba
by thelonecabbage 17y ago
JSON if you need SPEED at the client or server ends.
If speed isn't a major factor than XML may win out, depending on the complexity of the data your sending back. XML in large, hierarchies is going to be easier to read.
- metachris 17y agoi agree. JSON for "simple" data structures if you want to save bandwith, XML if you want to have more complicate structured documents with markup.
- jacquesm 17y agoThat's a tough one. Ideally the javascript would render the page so that the absolute minimum would be transmitted across the line, basically just the raw data once per page, the javascript would stay cached on the clients machine. But sending markup along would make the whole thing considerably easy to implement, I think (but this could be just a wrong gut feeling, I'll have to figure that one out).