# Json Comparer — REST API endpoint `json-comparer`

Returns a git-style line diff of two JSON documents after both are pretty-printed with 2-space indentation. Each line is marked added, removed or unchanged with its line numbers; a unified text block and counts are included.

- Category: data
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/json-comparer/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/json-comparer/
- Same tool on the other surface: https://findutils.com/mcp/json-comparer/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/json-comparer/execute \
  -H "Content-Type: application/json" \
  -d '{
    "left": "{\"a\":1,\"b\":2}",
    "right": "{\"a\":1,\"b\":3}"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/json-comparer
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `left` | string | yes | The original JSON document (text). |
| `right` | string | yes | The changed JSON document (text). |
| `sort_keys` | boolean | no | Sort object keys recursively before formatting, so key order does not show as a change. Default: false. Default: `false`. |

Example arguments (verified):

```json
{
  "left": "{\"a\":1,\"b\":2}",
  "right": "{\"a\":1,\"b\":3}"
}
```

Decoded `left` argument (readability only — send it as a string):

```json
{
  "a": 1,
  "b": 2
}
```

Decoded `right` argument (readability only — send it as a string):

```json
{
  "a": 1,
  "b": 3
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:json_comparer`. Full MCP reference: https://findutils.com/mcp/json-comparer/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
