Input: [ 1, 2,3 ] spread unevenly over several lines, with Use Spaces set to 4. Output: the array with 1, 2 and 3 each on its own line, indented by four spaces.
Input: {"names":["jack","john","alex"],"hobbies":{"jack":["programming","rock climbing"]}}. With Use Spaces set to 2, every key and array item goes on its own line, with two spaces added for each nesting level.
Input: an object with extra spaces around keys and colons, such as { "name": "The Name of the Wind", "published" : 2007 }. With Use Tabs selected, the extra spaces are removed and each key goes on its own line, indented by one tab per nesting level.
No. It only re-indents text that JSON.parse accepts. Trailing commas, unquoted property names and comments trigger the Invalid JSON string error. To see the parser's exact message, use the Validate JSON tool.
Not with this tool. It parses the whole input as one JSON document, so several JSON values on separate lines fail to parse. The Minify JSON and Validate JSON tools accept JSON Lines input.