Definition

Verifies JSON data against specified validation criteria and expected structure. This evaluation ensures that JSON content adheres to predefined schemas and validation rules.

A Passed result indicates that the JSON meets all validation criteria and matches the expected structure, while a Failed result signifies that the JSON fails one or more validation checks.


Calculation

The evaluation process begins with input validation, ensuring that the actual JSON data is correctly formatted, aligns with the expected structure, and meets the defined criteria. Next, during schema comparison, the system checks for structural consistency between the actual and expected JSON, performs type validation on JSON elements, and verifies adherence to specified evaluation criteria.

The evaluation determines a pass or fail outcome based on validation results, identifying specific points of failure where the JSON does not conform to expectations.


What to do when JSON Scheme Validation Fails

Start with a schema review by checking the actual JSON structure against the expected schema and ensuring alignment with the defined validation criteria. Then, review the validation criteria to confirm that they are appropriate for the use case, complete in covering all necessary constraints, and free from conflicting rules that might cause unnecessary validation failures.


Differentiating JSON Scheme Validation from Is JSON Eval

While both evaluations handle JSON, their scope and complexity differ. JSON Schema Validation ensures that a JSON structure adheres to specific rules and validation criteria, while Is JSON simply checks whether the content is a valid JSON format.

JSON Schema Validation involves a more complex process, verifying structure, data types, and constraints against predefined schemas, whereas Is JSON performs a basic syntax check for correct JSON formatting.