I want to get, via ajax, a collection of data objects and parse them into JS data.
Currently I have 2 choices:
– Server returns valid javascript code and then I eval it.
– Server returns JSON object and then I eval the json object
What is the fastest of these in Firefox? (I only care about the “parsing” performance, not server or data transfer)
Have a look at the results VinylFox came up with when he tested JSON decoding in the wild. The native functions performed best across all browsers.