Verifies JSON data against specified validation criteria and expected structure. This evaluation ensures that JSON content adheres to predefined schemas and validation rules.
actual_json
content successfully conforms to the structure and rules defined in the expected_json
schema, according to the specified validations
.actual_json
content does not match the expected_json
schema based on the specified validations
(e.g., missing required fields, incorrect data types, invalid structure)Click here to learn how to setup evaluation using the Python SDK.
Input Type | Parameter | Type | Description |
---|---|---|---|
Required Inputs | actual_json | object or string | The JSON content to validate. |
expected_json | object or string | The reference JSON schema to validate against. | |
Configuration Parameters | validations | list[string] | List of specific validation criteria (e.g., ["type_check"] ). |
Output | Type | Description |
---|---|---|
Result | float | Returns 1.0 if the JSON matches the schema (Pass), 0.0 otherwise (Fail). |