Parsing json using RequestHandler functions