Skip to content
empinet.dev
JSON

JSON Flatten and Unflatten

Convert nested JSON into flat path-value pairs and rebuild the original object or array structure.

JSON path transformer

Use unambiguous JSON Pointer-style paths; array indexes start with #.

Nested JSON
Flat path-value JSON

Unambiguous paths

Object paths follow JSON Pointer escaping, so slashes and tildes inside keys round-trip correctly. Array positions use segments such as /items/#0.

When flattening helps

Flat path-value objects are useful for comparing configuration, building translation files, inspecting deeply nested values, and adapting data for simple key-value stores.