AmpCub TOOLS
AmpCub site ↗
Privacy: Files never leave your browser.

DATA · AmpCub data helper

JSON flatten / unflatten

Flatten nested JSON into path keys, or safely restore the hierarchy.

Flatten nested JSON into an RFC 6901 JSON Pointer map, or rebuild the structure with collision and unsafe-path checks.

Local only · prototype-pollution guard
Nested JSON / path mapJSON

1. Input

2. Result

Path policy and safety

Frequently asked questions

Why /user/name instead of user.name?

Dot paths are ambiguous when keys contain dots; JSON Pointer has precise escaping.

When does unflatten fail?

On type collisions, sparse array indexes, or unsafe segments like __proto__.