TFT

JSON Extract Tool – Extract Nested JSON by Path

Extract a specific nested portion of JSON using a key path. Our free JSON Extract Sub-JSON Tool helps you isolate exactly the data you need from large, complex JSON documents.

Use dot notation for nested paths (e.g., $.data.user.name)

About JSON Extract Tool

Large JSON responses often contain more data than you need. This tool extracts a specific nested portion using a JSONPath-style key path, giving you just the sub-object or array you care about.

How it works

Paste your JSON and enter a key path like $.data.user.profile. The tool navigates to that location and extracts just that portion as a new JSON document.

Use the Quick Paths buttons to try common patterns, or type your own path. Dot notation accesses object properties, and bracket notation accesses array indices.

When you'd use this

Your API returns a large response but you only need one nested section for your feature. Extract just that part to simplify your code and reduce data processing.

This extracts by path only, not by filtering conditions. For extracting items that match certain criteria from arrays, use the JSON Filter tool instead.

Questions

What path syntax is supported?

Use $ for root, dots for properties ($.data.user), and brackets for arrays ($.items[0]). Wildcards are not supported.

What happens if the path doesn't exist?

An error message appears saying the path was not found. Check your path spelling and verify the structure of your JSON.

Can I extract multiple paths at once?

No, this tool extracts one path at a time. Run it multiple times for different paths or use a more advanced JSON query tool.

How do I save the extracted JSON?

Use Copy to paste into your code, or Download to save as a JSON file. Both options appear after extraction.

Does it work with array roots?

Yes, use $[0] to access the first array element, $[1] for the second, and so on. Combine with property access for nested data.