Method Standards.JSON5.Validator()->validate()
- Method
validate
 
- string|- zerovalidate(- mixed- json5)
- Description
- This function validates a JSON5 object against the JSON5 schema that was specified in the Validator's constructor. If the JSON5 object is not valid, a string with an error-message is returned. If the JSON5 object is valid, 0 is returned. 
- Parameter json5
- The JSON5 object to validate. 
- Returns
- 0, if the json5 object is valid, and an error-message if it is not valid.