About this tool
Flattening turns nested objects and arrays into a single-level object with dot-notation keys, e.g. a.b and a.c.0 — useful for spreadsheets, environment variables, or diffing deeply nested structures. Unflatten reverses this: keys whose next segment is a number become array indices, otherwise an object.