When to use it
- Use it when JSON is hard to read in a single line.
- It is helpful for checking API payloads and config files.
- You can quickly tell whether the input is valid JSON.
Not exactly. JSON is stricter and requires double-quoted keys and strings.
Yes. Invalid JSON will fail during parsing and show an error.
{
"project": "bbalrang",
"safe": true
}Formatted with two-space indentation.