\n"+'';document.getElementById('adnet-top').appendChild(f);})();
Free foreverNo sign-upRuns 100% in your browser

JSON Flatten / Unflatten

Paste JSON and flatten {"a":{"b":1}} into a.b: 1 — or paste flat pairs and unflatten them back into a nested object.

Format

Flatten prints "path = JSON-value" per line. Arrays use [index] notation. Unflatten expects the same shape and rebuilds objects/arrays.

Frequently asked questions

Empty objects?

Flattened as {} / [] values on their own line.

Dots inside keys?

Keys containing literal dots will confuse unflatten — avoid.

Deep nesting?

Any depth is supported.