Reference notes
How JSON formatting works
JSON formatting parses JSON and writes it back with predictable indentation and spacing.
A formatter should also validate syntax first so formatting errors point to the real parsing problem.
JSON formatter examples
Minified JSON such as {"name":"ValidoHub","active":true} can be expanded into readable nested output.
Invalid JSON should return a clear line or character location where possible.
JSON formatter FAQ
JSON requires double-quoted property names and does not allow comments or trailing commas.
Formatting does not change data types; it only changes whitespace and layout.
JSON formatter references
Reference material should cover the JSON data model, strings, numbers, arrays, objects, and literals.
Future references can compare strict JSON with JSON-like formats used by tools.
JSON formatter developer examples
Developer examples should show formatting API responses, configuration files, and log payloads.
Examples should preserve the distinction between JSON strings and already-parsed objects.