Expand description
JSON validation utilities for --json and --json-schema output modes.
Functions§
- strip_
markdown_ fences - Strip markdown JSON fences if present (e.g.,
json ...). - validate_
json - Parse text as JSON, stripping markdown fences if present.
- validate_
json_ schema - Parse text as JSON and validate it against a JSON schema.
- validate_
schema - Validate that a JSON value is a valid JSON Schema.