Formats, validates, and transforms JSON and YAML
Formats, validates, minifies, and converts between JSON and YAML.
Input: minified or messy JSON → Output: indented, readable JSON
// Input:
{"id":"abc","sets":[{"weight":100,"reps":5}],"completedAt":"2026-04-08T10:00:00Z"}
// Output (2-space indent, sorted keys optional):
{
"completedAt": "2026-04-08T10:00:00Z",
"id": "abc",
"sets": [
{
"reps": 5,
"weight": 100
}
]
}
Input: pretty JSON → Output: single-line, no whitespace
Check for: unclosed brackets, trailing commas, unquoted keys, single quotes (not valid JSON) Report the exact line and character of the error.
# From above JSON:
completedAt: "2026-04-08T10:00:00Z"