JSON Formatter parses a JSON text, checks that it follows the grammar, and reprints it with indentation. JSON Formatter inserts a newline after each comma and brace at the chosen indent width, and it can minify the same text by removing insignificant whitespace. JSON Formatter reports the line and column of the first syntax error, such as a trailing comma or a bare key. JSON Formatter sorts object keys only when that option is on, because key order is otherwise preserved. The formatted text is the same data model as the input. Copied indents stay intact inside the next editor.