Unflatten a simple object
Input
{"user.id":7,"user.name":"Anna"} Output
{
"user": {
"id": 7,
"name": "Anna"
}
} Useful when flat dot-notation keys need to become a normal nested object again.
Developer Tools
Review practical JSON Unflatten examples so you can understand expected input, output, and common patterns faster.
Use this JSON Unflatten tool to convert flat path-based JSON into a nested JSON structure again. It is useful when you receive flattened exports, mapping results, analytics-style path objects, or intermediate transformed data and want to rebuild the original nested shape. The tool supports dot notation for objects and bracket indexes for arrays.
Example pages are especially useful for developer tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
Input
{"user.id":7,"user.name":"Anna"} Output
{
"user": {
"id": 7,
"name": "Anna"
}
} Useful when flat dot-notation keys need to become a normal nested object again.
Input
{"orders[0].id":101,"orders[1].id":102} Output
{
"orders": [
{
"id": 101
},
{
"id": 102
}
]
} Useful when flattened array paths need to be restored into array items.
Fix: Use a JSON object with string keys like user.id or items[0].name.
Fix: Use dot notation for objects and bracket indexes for arrays.
Fix: Validate or format the input first before unflattening.
Fix: Avoid mixing paths that force the same field to be both a primitive value and a nested object.
Fix: This tool rebuilds structure, but exact ordering may differ.
After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.
Open the main JSON Unflatten page and test your own real input.