FreeDev Tools

JSON Flatten / Unflatten

Flatten nested JSON to dot-notation keys, or unflatten back to nested objects.

Flattening JSON converts deeply nested structures into a single-level object using dot-notation keys (e.g., user.address.city). This is useful for working with configuration files, database schemas, or APIs that expect flat structures. The unflatten operation reverses the process, reconstructing the original nested hierarchy from dot-notation keys.

Frequently Asked Questions

Flattening converts nested JSON into a single-level object where keys represent the full path using dot notation, e.g. {"a":{"b":1}} becomes {"a.b":1}.