JSON Formatter API Documentation
Complete reference for the JSON Formatter API
Authentication
Authorization: Bearer sk_live_your_key_here
GET POST /v1/json/process
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | validate, format, minify, stats, flatten, unflatten, query, diff, to_csv, to_yaml, sort_keys, sample |
| json | string | Yes* | JSON string input (max 500KB). Not required for sample. |
| json2 | string | No | Second JSON for diff action |
| indent | integer | No | Indentation spaces for format (1-8, default 4) |
| path | string | No | Dot-notation path for query action (e.g. address.city) |
| separator | string | No | Key separator for flatten/unflatten (default ".") |