Optimize the json parser a bit by avoiding dynamic string creation

This change took parsing of a test 44MB json file from 1.2 seconds to
0.8 seconds.