Einhugur JSON Plugin III for Xojo |
|
EinhugurJSONIII.JSONSchemaDocument Class (console safe)
JSONScemaDocument is class to describe validation schema to validate JSON documents.
Object
JSONSchemaDocument
class EinhugurJSONIII.JSONSchemaDocument
Constructors
Methods
Delegates
Examples
Normal procedure would be to read JSON schema document by using JSONDocument and then parse the schema. Then schema would be used to build validator object.
Compiled schema can be re-used many times. Validator object can be re-used if it is reset in between runs.
var schemaDoc as JSONDocument = new JSONDocument()
if schemaDoc.Parse(Schema) then
var schema as JSONSchemaDocument = schemaDoc.BuildSchema()
var validator as JSONSchemaValidator = schema.CreateValidator()
End if
More complete example can be found on the JSONSchemaValidator class.
Supported Platforms:
macOS Intel 32 bitmacOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS