Skip to main content

JSON Key Path Explorer

List every field in a JSON object as a dot/bracket path (e.g. user.address.city, items[0].id), making it easy to reference deeply nested values.

Reviewed for accuracy by the Math Ora X team Last updated

About this tool

List every field in a JSON object as a dot/bracket path (e.g. user.address.city, items[0].id), making it easy to reference deeply nested values.

Example

Input: {"user":{"name":"Al"}}

Output: user.name = "Al"

Privacy

This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.

How to use this tool

  1. Paste a valid JSON object or array into the input box.
  2. Check the generated key paths to see every nested field in dot or bracket notation.
  3. Use the paths to copy field names into code, tests, filters, or API mappings.
  4. If the JSON changes, paste the updated version again to refresh the list.

Step by step, what happens

  1. The tool reads your JSON and walks through each object, array, and nested value.
  2. For every field it finds, it builds a path that shows where that value lives, such as user.address.city or items[0].id.
  3. Array entries are shown with bracket indexes so you can tell which element each path belongs to.
  4. The result is a flat list of key paths that makes deep JSON structure easier to inspect and reference.

Worked example

Suppose you want to find the exact path for a user's city and a product id inside a small JSON response.

Input: {"user":{"name":"Ana","address":{"city":"Paris"}},"items":[{"id":1,"name":"Pen"}]}

  1. Paste the JSON into JSON Key Explorer.
  2. The tool scans the root object, then follows the nested user object and the items array.
  3. It lists each reachable field as a path, including the array item path for the first element.

Output: user.name user.address.city items[0].id items[0].name

Tips and common mistakes

  • Make sure the input is valid JSON, because a missing comma or quote will stop the tool from listing paths correctly.
  • Remember that arrays use bracket indexes, so the first item is shown as [0], not [1].
  • If a field appears multiple times in different places, each location gets its own full path.
  • Use the output paths exactly as shown when you need to reference deeply nested values in code or documentation.

Frequently asked questions

What notation is used?

Dot notation for object keys and [index] for array elements, the same syntax used in code.

Why is this useful?

To quickly find the exact path to a nested value for use in code or JSONPath.

Is it private?

Yes, everything runs locally.

More Developer Tools Tools

Explore related calculators in this category

You Might Also Like

Popular tools from other categories

Can't Find the Right Calculator?

Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.

Try AI Solver

Browse All Categories

Home Developer Tools Current Tool
Facebook Twitter WhatsApp