JSON Key Extractor
List every key path in a JSON document with its data type.
Also called: list JSON keys, JSON path extractor.
JSON Key Extractor
List every key path in a JSON document with its data type.
Watch: how to use the JSON Key Extractor (12 seconds)
Recorded on a phone, steps written on screen, no sound.
About the JSON Key Extractor
List every key path in a JSON document (like user.address.city or items[0].price) with the type of its value. Useful to understand an unfamiliar API response.
What the list shows
Every key path in the JSON, one per line, with the type of value it holds: user.name: string, user.age: number. Items of a list are written with [], so orders[].total: number covers the total of every order.
If the same key holds different types in different places, all of them are shown, for example price: number | null. Useful for writing documentation, planning a database table or checking that an API returns the fields you expect.
How to use the JSON Key Extractor
- Enter your textType or paste JSON.
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the JSON Key Extractor gives for it (produced by the tool itself, not typed by hand).
- JSON
- {"name": "Kitwise", "tools": 3, "tags": ["pdf", "image", "text"], "free": true}
Result:
name: string tools: number tags: array tags[]: string free: boolean
Good to know
- What you need
- You type or choose: JSON
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
Are array items listed?
Yes, with their index.
Can I flatten the JSON?
Use Flatten / Unflatten JSON.