# JsonEqualityEvaluator

> **Class** in `langchain_classic`

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

Json Equality Evaluator.

Evaluate whether the prediction is equal to the reference after
parsing both as JSON.

This evaluator checks if the prediction, after parsing as JSON, is equal
    to the reference,
which is also parsed as JSON. It does not require an input string.

## Signature

```python
JsonEqualityEvaluator(
    self,
    operator: Callable | None = None,
    **_: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `operator` | `Callable \| None` | No | A custom operator to compare the parsed JSON objects. Defaults to equality (`eq`). (default: `None`) |

## Extends

- `StringEvaluator`

## Constructors

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

| Name | Type |
|------|------|
| `operator` | `Callable \| None` |


## Properties

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

---

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