Pike v8.1 release 6

Method Standards.JSON.Validator()->create()


Method create

Standards.JSON.Validator Standards.JSON.Validator(mixed _schema)

Description

Create a JSON validator for some JSON schema.

Parameter _schema

The JSON schema to use in validate(). This must be a valid JSON object.

Throws

Throws an error if the schema is invalid.