# JSON Suite – Validate, Repair, Format, Query, Diff, Convert & Analyze JSON

> JSON Suite – Validate, Repair, Format, Query, Diff, Convert & Analyze JSON is a paid API for AI agents from json-suite.underscoredone.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Swiss-army-knife JSON toolkit: validate, repair, format, canonicalize, convert (YAML/CSV), query (JSONPath/pointer), diff two documents, validate against a schema, and compute stats — all in one endpoint.

## Facts

- Endpoint: POST https://json-suite.underscoredone.com/json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-suite-validate-repair-format-query-diff-convert-analyze-json-c8efccb4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nbYhtb3vmLWtO9FYgwzO_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability json-suite-validate-repair-format-query-diff-convert-analyze-json-c8efccb4 -d '<json body>'
```

Example prompt: Can you check if this JSON is valid and tell me exactly where the error is: '{"name": "Alice", "age": 30, "city": "New York"'? If it's broken, go ahead and repair it too.

## When to prefer this

Choose this endpoint when you need any common JSON manipulation — validation, repair, formatting, querying, diffing, conversion, or schema validation — in a single stateless call without spinning up a local library. Ideal for AI agents that encounter unpredictable or user-supplied JSON and need to validate or fix it on the fly, or need to extract values, compare documents, or produce canonical forms for signing/hashing. Prefer over ad-hoc string parsing or separate format-specific tools.

## Known failure modes

- Invalid or missing 'op' parameter — API returns an error indicating unrecognized operation
- 'data' field missing for operations that require it — API returns a missing-input error
- Malformed JSONPath or JSON Pointer expression — query op returns an error with path details
- 'data_b' missing when performing diff or patch — API returns a missing secondary document error
- 'to' format missing or unsupported in convert op — API returns an unsupported format error
- data_raw absent when using validate or repair ops — API returns a missing raw-input error
- Schema invalid or unparseable in schema validation op — API returns a schema parse error
- Payment not included — x402 payment required error (402) returned

## How this service works

Every agent and developer hits broken or confusing JSON. This tool handles the common headaches in one place: check whether JSON is valid with the exact error location, repair near-JSON with typos, pretty-print or minify, pull values out with a path expression, diff two documents, convert to and from YAML or CSV, produce a byte-stable canonical form for hashing, validate against a schema, and report size and structure. Same input, same output, no side effects.

## Output

Returns the result of the requested JSON operation — e.g. a validation verdict with exact error line/column, repaired JSON text, pretty-printed or minified JSON, a canonical form, the value at a JSONPath, a structured diff between two documents, converted YAML or CSV, a schema validation report, or structure/size statistics. Output is deterministic and stateless.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "type": "string",
   "description": "What you want to do. Choose one of: validate, repair, format, canonicalize, convert, query, diff, patch, schema, stats."
  },
  "data": {
   "type": "object",
   "description": "The JSON value you want to work with - can be an object, array, string, number, or anything valid. Required for all operations except validate and repair (which use data_raw instead)."
  },
  "options": {
   "type": "object",
   "description": "Extra settings for the chosen operation. For example: indent, sort_keys, jsonpath, pointer, to (for convert), schema, data_b (for diff/patch). All optional - the API uses sensible defaults."
  },
  "data_raw": {
   "type": "string",
   "description": "The raw text you want to validate or repair. Use this instead of data only for the validate and repair operations, because those need to see the original broken text exactly as-is."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "query",
  "valid": true,
  "matches": [
   {
    "path": "$.order.items[0].sku",
    "value": "BIL-CUE-07"
   },
   {
    "path": "$.order.items[1].sku",
    "value": "BIL-CHALK-01"
   }
  ],
  "api_version": "1.0.0",
  "match_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-suite-validate-repair-format-query-diff-convert-analyze-json-c8efccb4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-suite.underscoredone.com](https://www.zero.xyz/host/json-suite.underscoredone.com/llms.txt)
