{"category":"data","endpoint":"https://setget.net/v1/tools/json-format","examples":[{"input":{"text":"{\"b\":1,\"a\":[1,2]}"},"output":{"text":"{\n  \"b\": 1,\n  \"a\": [\n    1,\n    2\n  ]\n}"}},{"input":{"indent":4,"sort_keys":true,"text":"{\"b\":1,\"a\":2}"},"output":{"text":"{\n    \"a\": 2,\n    \"b\": 1\n}"},"title":"Sorted keys, four spaces"}],"input_schema":{"additionalProperties":false,"properties":{"indent":{"default":2,"description":"Spaces per indentation level.","maximum":8,"minimum":1,"type":"integer"},"sort_keys":{"default":false,"description":"Sort object keys alphabetically.","type":"boolean"},"text":{"description":"The JSON to format.","examples":["{\"b\":1,\"a\":[1,2]}"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["json","pretty print","beautify","indent","prettify","format json"],"related":["json-minify","json-validate","json-diff"],"slug":"json-format","summary":"Pretty-print JSON with your choice of indentation, optionally sorting keys.","tier":"inline","title":"JSON formatter","url":"https://setget.net/tools/json-format"}
