JSON Unflatten
The JSON unflattener takes a single-level object whose keys are dot-separated paths and rebuilds the nested structure they describe. Numeric path segments become array indexes, so user.roles.0 is restored as an array rather than an object with a "0" key.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the JSON Unflatten
- Paste the flat JSON object whose keys are paths.
- Set the separator to match the one used in those keys.
- Read the rebuilt nested document.
- Copy or download the result.
Example
{"user.city": "London"}
{
"user": {
"city": "London"
}
}
Common use cases
- Turning flat environment configuration back into a structured config file.
- Rebuilding nested records from a spreadsheet export with dotted column headers.
- Reversing a flatten step in a data pipeline.
- Converting a flat key-value store dump into a readable nested document.
Limitations and things to watch for
- The input must be a flat JSON object. A nested document, or a top-level array, is rejected rather than partially processed.
- Keys that contained the separator before flattening cannot be distinguished from real path boundaries, so those documents will not round-trip.
- A path where one segment is used as both an object and a value — such as a and a.b together — resolves in favour of the deeper path, because one of the two has to win.