How to repair JSON without losing values

Separate formatting, limited repair and conversion so an error does not turn into a changed value.

Formatting cannot decide missing data

Format changes spacing in valid JSON. Preview repair can remove comments and commas immediately before a closing bracket or brace. It leaves the original input in place until you choose Use repaired JSON.

Missing values, missing quotes and unclosed structures need your decision. The repair action refuses those cases instead of inventing content. Compare the preview with the original before using it.

Keep long numbers as written

The formatter reads number tokens without converting them to JavaScript numbers. The integer 9007199254740993 therefore stays 9007199254740993. This matters for identifiers and other values whose exact digits must survive.

Duplicate keys are preserved when formatting JSON, but refused for conversion. Different applications can interpret duplicate keys differently, so resolve them before moving the data to another format.

Choose a format that can carry the structure

YAML output preserves nested JSON values and their scalar text. Typed XML records each JSON value’s type using value, property and item elements. It is an explicit representation, not a promise to match another application’s XML schema.

CSV accepts an array of flat objects with the same keys. Nulls and nested structures are refused because empty cells would lose their meaning. CSV does not carry JSON types; check the column types in the application that opens it.

Use the tools

Find a tool

Search by task. Use ↓ and ↑ to choose, Enter to open.