A JSON parser is less than a thousand lines of code.
And where most of CPU time will be wasted in, if you care about profiling/improving responsiveness.
And where most of CPU time will be wasted in, if you care about profiling/improving responsiveness.