Well-formed JSON/XML (no syntax errors)¶
json_xml_well_formed - Column-level - JSON and XML
Validates that a JSON or XML column's non-null values are syntactically well-formed.
Parameters¶
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
format |
str | 'json' |
No | Whether the column holds JSON or XML documents. One of: json, xml. |
threshold_percent |
float | 0.0 |
No | Fail if the percentage of malformed documents exceeds this. |
YAML example¶
checks:
- name: example_json_xml_well_formed
check_type: json_xml_well_formed
table_name: schema.table
column_name: example_column
parameters:
format: json
threshold_percent: 0.0
See YAML check format for the full field reference.