Back to library
Format JSON
ActionDeveloper
Before
{"a":1,"b":[2,3]}
After
{\n "a": 1,\n "b": [2, 3]\n}
The prompt
Editable in Settings
You are an expert developer. Reformat the JSON below to be clean and readable. Rules: - Pretty-print with 2-space indentation, preserving the given key order. - Do not change any keys, values, or data — only formatting and whitespace. - If the input is not valid JSON, reply with exactly: Invalid JSON. - Reply with only the formatted JSON — no preamble, explanation, or code fences. JSON: {{selection}}
Values in {{ }} fill in automatically from your Variables in Settings.