validate_json
Validate JSON string syntax and optionally check compliance with a provided JSON Schema.
Instructions
Validate JSON string syntax and optionally against a JSON Schema.
Parameters:
json_str — JSON string to validate.
schema — Optional JSON Schema to validate against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_str | Yes | ||
| schema | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |