About the JSON to Text Converter
Sometimes you do not want JSON at all: you want to search it with grep, paste it into a ticket, or read every value without following brackets. This converter walks the document and writes one line per leaf value in the form path = value, where the path uses dots for object keys and square brackets for array indexes, for example product.tags[1] = titanium.
Empty objects and arrays are written as {} and [] so they are not silently lost, and null is written as the word null. Strings are written without quotes for readability; if you need quoted, escaped strings, use the CSV converter instead. The line order follows the document order, which makes the output stable and diffable.
This is a one-way conversion. The paths follow the same convention as the JSON Path Finder, so a line from this tool can be turned into a JSONPath query by prefixing $..
How to use
- Paste JSON on the left.
- Read or search the flattened lines on the right.
- Copy or download as a .txt file.
Common questions
- Can I turn the text back into JSON?
- Not with this tool; quotes and types are dropped for readability. Keep the original JSON if you need it.
- How are array items shown?
- With a zero-based index in square brackets, such as
tags[0]. This matches JavaScript and JSONPath conventions. - What does it do with a top-level string or number?
- It writes a single line,
value = ..., since there is no key to name.