Flatten nested JSON into single-level dot-notation keys, or unflatten back to nested. Load sample
. _ /
Flatten deeply nested JSON into a single-level object with dot-notation keys — {"a":{"b":1}} becomes {"a.b":1}. Or unflatten in the other direction: paste a flat object and reconstruct the original nested structure. Change the delimiter to underscore, slash, or any separator you need. Common uses: flattening config objects, normalizing data for CSV export, debugging deeply nested API responses.
Flattening collapses a nested JSON object into a single level where each key is a path from root to the value, joined by a delimiter. {"user":{"name":"Alice","address":{"city":"NY"}}} flattens to {"user.name":"Alice","user.address.city":"NY"}. Values at the leaf nodes are preserved exactly.
Unflatten is the reverse — it takes flat dot-notation keys and rebuilds the nested structure. Paste the output of a flatten operation (or any flat key-path object) and the tool reconstructs the original nesting.