The purpose of this componenty is to validate a JSON document against a JSON Schema using the Newtonsoft.Json library and Newtonsoft.Json.Schema. The code performs the following actions:
Reads JSON Schema and JSON Document: Accepts input as byte arrays and converts them into strings.
Validates JSON Document: Uses the JSON Schema to validate the structure and data types in the JSON document.
Handles Errors: Returns detailed validation errors, including line and position, if the JSON document does not conform to the schema.
Without licence key, Newtonsoft has a limit of 1000 schema validations per hour
Enhanced ValidateJson to support both JSON objects and arrays.
ValidateJson
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)