Improved performance of JSON parser