Added parseJSON method to JSONParser class.