JSON syntax validation and common errors
Valid JSON follows strict syntax rules. Property names and string values use double quotes, trailing commas are invalid, and comments are not part of standard JSON. Toolmera validates input with the browser’s JSON.parse implementation.
When the browser error message includes a character position, Toolmera also derives a line and column to make the problem easier to locate. The tool reports malformed JSON; it does not automatically repair it.
Valid key"name": "Toolmera"
Invalid keyname: 'Toolmera'
Trailing commaInvalid in standard JSON
CommentsInvalid in standard JSON
Pretty print vs. minify
Pretty printing adds indentation and line breaks so nested objects and arrays are easier to inspect. Toolmera supports 2-space, 4-space and tab indentation.
Minifying removes optional whitespace to create a compact JSON string. Both operations parse the JSON first, so malformed input produces a validation error instead of a misleading reformatted result.