JSONPath extractor

Extract fields and filter JSON arrays in your browser.

Loading…
Your input is processed on this device.

How to use

Paste JSON and enter a path starting with $. Use $.orders[-1] for the last order, $..id for IDs at any depth, and $['order.id'] for a key containing a dot. Filters support ==, !=, <, <=, >, >=, &&, || and parentheses. Results update as you type.

Example

$.orders[?(@.status == "paid")].id → ["001","003"]. Use $.orders[*].id to include all three orders.

Good to know

Where is my data processed?

Your browser performs the operation. Input stays in page memory. Markdown draft saving is available when you explicitly enable it on this device.

How does a field existence filter work?

@.paid checks that the field exists, including false and null. Use @.paid == true to match only the boolean true. Numbers and strings are compared by type.

What gets copied when the preview is limited?

Copy JSON includes all matches in order, including duplicates. Single-line strings and numbers also support copying one value per line. Input and full JSON output each have a 5 MiB limit.