Format / validate JSON

Validate JSON and pretty-print or minify it, optionally sorting object keys. Returns a precise parse error (with position) if invalid. Use to check and clean JSON instead of eyeballing it.

post/v1/tools/json_format

Request

  • Base URL: https://mcp.cleanor.app
  • URL: https://mcp.cleanor.app/v1/tools/json_format
  • Auth: none declared

Request body

inputstring required

JSON text.

mode'pretty' | 'minify'

pretty = 2-space indent; minify = single line.

sort_keysboolean

Sort object keys alphabetically (deep).

Response

Tool result: data (structured) and text (human-readable).

okboolean
toolstring
dataobject nullable
textstring
attributionstring

Changes

No recorded changes to this operation across all 1 revision of this API.