Integrity
Is JSON
![](https://mintlify.s3-us-west-1.amazonaws.com/openlayer-44/images/tests/integrity/integrity_icon.png)
Definition
The is JSON test allows you to check if a specified column contains a valid JSON.
Taxonomy
- Category: Integrity.
- Task types: LLM.
- Availability: and .
Why it matters
- LLMs are often prompted to generate a structured output, JSON being the most common format.
- If the LLM doesn’t generate a valid JSON, it can break the downstream applications that rely on it.
Related
- JSON tests using Great expectations, such as
expect_column_values_to_be_json_parseable
,expect_column_values_to_match_json_schema
, andexpect_column_values_to_be_valid_json
.