Added some functions to JSONParser