Closed ayesham closed 7 years ago
Curious to know why the validation for JSON isn't a method available via the JSON object, e.g. JSON.parse, JSON.stringify and JSON.validate or something similar.
JSON
JSON.parse
JSON.stringify
JSON.validate
JSON.parse does that.
Sorry to comment on this closed issue. But JSON.parse needs to be in a try/catch to verify a valid JSON string.
Curious to know why the validation for JSON isn't a method available via the
JSON
object, e.g.JSON.parse
,JSON.stringify
andJSON.validate
or something similar.