The playground

Try any of 919 endpoints — live.

Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.

Playground demo key · api.reefapi.com
post/dev-utils/v1/format1 credit

Pretty-print, minify or validate JSON / YAML / XML / SQL (string-level; file/data CONVERSION lives in the file-convert API).

Working example
Parameters

The document text.

Document type.

pretty | minify | validate (sql: pretty/minify only — sqlparse is non-validating).

Indent width for pretty (json/yaml/xml). (1–8)

Sort object keys (json/yaml).

SQL keyword casing (sql only).

request preview
curl -X POST https://api.reefapi.com/dev-utils/v1/format \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"input":"{\"b\":1,\"a\":[1,2]}","type":"json","op":"pretty","sort_keys":"true"}'

Hit Send to run this endpoint live.