# JsonSchemaEvaluator

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/evaluation/parsing/json_schema/JsonSchemaEvaluator)

An evaluator that validates a JSON prediction against a JSON schema reference.

This evaluator checks if a given JSON prediction conforms to the provided JSON schema.
If the prediction is valid, the score is True (no errors). Otherwise, the score is False (error occurred).

## Signature

```python
JsonSchemaEvaluator(
    self,
    **_: Any = {},
)
```

## Extends

- `StringEvaluator`

## Constructors

```python
__init__(
    self,
    **_: Any = {},
) -> None
```


## Properties

- `requires_input`
- `requires_reference`
- `evaluation_name`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/fb6ab993a73180538f6cca876b3c85d46c08845f/libs/langchain/langchain_classic/evaluation/parsing/json_schema.py#L9)