Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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