{"ok":true,"result":{"slug":"json-formatter","name":"JSON Formatter","summary":"Validate and pretty-print or minify JSON.","description":"Format, beautify, minify and validate JSON in your browser. Pinpoints syntax errors by line and column, and can sort keys. Your data never leaves your device.","method":"POST","endpoint":"/api/v1/tools/json-formatter","plan":"free","mcpName":"json_formatter","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The JSON text.","maxLength":200000},"mode":{"type":"string","description":"format or minify.","default":"format","enum":["format","minify"],"maxLength":200000},"indent":{"type":"integer","description":"Spaces per level when formatting: 2 or 4.","default":2,"minimum":2,"maximum":4},"sortKeys":{"type":"boolean","description":"Sort object keys alphabetically.","default":false}},"required":["input"]},"example":{"input":"{\"b\":1,\"a\":[true,null]}","sortKeys":true},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-formatter","page":"https://pithlab.com/tools/json-formatter"}}