added a json parser class