3 ms·
It may be hard to match the performance of the parsing per se. But the typical data flow with JSON goes like this: 1) Get a string. 2) JSON.parse it into an
by bzbarsky 10y ago
It may be hard to match the performance of the parsing per se.
But the typical data flow with JSON goes like this:
1) Get a string.
2) JSON.parse it into an object graph.
3) Use that object graph to build the data structure you really care about (e.g. a DOM).
If you parse yourself you may be able to cut out the middleman object graph. That might be worthwhile; needs measuring.