JSON Unflatten
Rebuild nested JSON from paths and bracketed array indices.
Valid JSON
Your input is processed locally in this browser tab.
How to use JSON Unflatten
Select the path separator used by your flat JSON object (dots, underscores, or slashes).
Paste flat key/value JSON with bracketed array indices such as items[0].id.
Inspect the reconstructed nested JSON document and copy or download it.
Frequently asked questions
What happens if two paths conflict (e.g. a and a.b)?
Conflicting primitive vs container paths raise a clear path-conflict error rather than silently overwriting data.
Are sparse indices like a[1000000] bounded?
Yes. Array index expansion is safely bounded to prevent memory exhaustion.