Json.validate
Json.validate($jsonTypeString) -> boolean
Description
Returns true if the given JSON TypeString can be send to the decode method without error.
$jsonString = json'{"name":"Thoreau","born":1817}' Json.validate($jsonString) //= true
Returns true if the given JSON TypeString can be send to the decode method without error.
$jsonString = json'{"name":"Thoreau","born":1817}' Json.validate($jsonString) //= true