JSON Flattener
Flatten nested JSON into path-value pairs or safely unflatten paths using dot, bracket, slash, or custom separators with collision detection.
Flatten nested JSON into reversible path-value pairs
Flattening replaces nested containers with path keys that point to leaf values. It is useful for analytics, environment data, table preparation, comparisons, and form fields.
Path notation must escape separator characters correctly. ArrayText detects collisions while unflattening instead of silently overwriting incompatible values.
JSON Flattener FAQ
Can flattened JSON be restored?
Yes, when path notation is unambiguous and no collisions were introduced. The tool supports reversible dot, bracket, slash, and custom notation.
How are arrays handled?
Arrays can be indexed into separate paths or preserved as complete values.
Why did unflattening report a collision?
Two paths attempted to use the same location as incompatible scalar and container values, or defined the same path twice.
Continue working with your data
Evaluate RFC 9535 JSONPath expressions safely against JSON and inspect matched values, normalized paths, and JSON Pointers without executing query code.
JSON and JSONL ConverterConvert JSON arrays to JSONL or NDJSON and line-delimited records back to JSON with exact line errors, record counts, and downloads.
JSON Merge ToolMerge multiple JSON objects using shallow, deep, or RFC 7396 Merge Patch behavior with configurable array and conflict strategies.
Compare JSON Arrays by KeyCompare arrays of JSON objects by one or more identity properties and report added, removed, changed, unchanged, and duplicate-key records.