Removed unnecessary usage of const.
Changed checks in *_parse() functions to use the is_json_*() functions.