Planned — not yet live

API reference

A REST API is planned so you can validate, format, repair, and convert JSON directly from your own applications and CI pipelines. The endpoints below describe the intended contract; none are live yet — every tool on the site today runs entirely client-side.

POST/v1/validate

Validate a JSON document and return the exact error location, if any.

Request body

{ "json": "string" }

Response

{ "valid": boolean, "error"?: { "message": string, "line": number, "column": number } }
POST/v1/format

Pretty-print or minify a JSON document.

Request body

{ "json": "string", "indent": "2" | "4" | "tab" | "minified" }

Response

{ "output": "string" }
POST/v1/repair

Attempt to automatically fix common JSON syntax errors.

Request body

{ "json": "string" }

Response

{ "success": boolean, "output": "string", "steps": Array<{ "label": string, "count": number }> }
POST/v1/convert

Convert JSON into another format (XML, CSV, YAML, TypeScript, and more).

Request body

{ "json": "string", "target": "xml" | "csv" | "yaml" | "typescript" | "python" }

Response

{ "output": "string" }