fixing parsing of json.