Flattened a lot of the code in JsonParser.
Made safeIndexWhere private and final.
Flattened out safeIndexWhere into the two calling locations.
Tweak to improve printing performance.