Text utilities

Flatten JSON

Convert nested JSON object keys into dot-separated paths.

Text stays in your browserCopy your result

Input workspace

Runs on your device

OUTPUT WORKSPACE

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter json object.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Walk nested nonempty objects and join keys with dots. Arrays and empty objects remain values.

A WORKED EXAMPLE

{"user":{"name":"Ava"}} becomes {"user.name":"Ava"}.

What to keep in mind

Maximum nesting depth is 30. Empty keys, dotted keys and reserved object keys are rejected.

Common questions

How does this tool handle my input?

Processing happens in your browser. Your pasted content is not uploaded, included in URLs or stored as a calculation history.

What input should I use?

JSON object: use the example already shown, then replace it with your own content. Maximum nesting depth is 30. Empty keys, dotted keys and reserved object keys are rejected.

Methodology maintained by ClarityKit. How these tools are built and checked.