logoOmniToolsKit

JSON Path Finder

Extract values from JSON using JSONPath expressions

JSONPath QueryDot NotationFilter ExpressionsReal-time Results

JSON Input

Enter or paste your JSON data

JSONPath Query

Get store nameAll product namesFirst productAll pricesStore cityEmployee names

Results3 matches

Available Paths

Click to use a path
$$.store$.store.name$.store.location$.store.location.city$.store.location.country$.store.products$.store.products[0]$.store.products[0].id$.store.products[0].name$.store.products[0].price$.store.products[0].category$.store.products[1]$.store.products[1].id$.store.products[1].name$.store.products[1].price$.store.products[1].category$.store.products[2]$.store.products[2].id$.store.products[2].name$.store.products[2].price$.store.products[2].category$.store.employees$.store.employees[0]$.store.employees[0].name$.store.employees[0].role$.store.employees[1]$.store.employees[1].name$.store.employees[1].role

JSONPath Syntax Reference

$ - Root object
.property - Child property
[n] - Array index
[*] - All elements
*.property - All properties
.. - Recursive descent
["prop"] - Bracket notation
About this tool

Query and extract values from JSON data using JSONPath expressions. Test complex path selectors, explore nested structures, and debug API responses — all in your browser with live preview.

About

JSONPath Query Tool for Extracting Data from Complex JSON Structures

JSONPath is a query language for JSON data, designed to be analogous to XPath for XML. It lets you navigate and extract specific values from arbitrarily nested JSON structures using a concise path expression syntax. JSONPath is used in tools like AWS CloudFormation, Kubernetes admission webhooks, jq scripts, API testing tools (Postman, REST Assured), Java's Jackson library, .NET's Newtonsoft.Json, and Python's jsonpath-ng library.

The root symbol `$` represents the entire JSON document. From the root, you navigate using dot notation (`.key`) or bracket notation (`['key']`) for object properties, and square brackets with indices (`[0]`) or wildcards (`[*]`) for arrays. Recursive descent (`..`) searches the entire document tree at any depth. Filters (`[?(@.price < 10)]`) apply conditional logic to select only matching elements.

OmniToolsKit's JSONPath tool provides a live editor with syntax highlighting. As you type your path expression, matching values are instantly highlighted in the JSON source and displayed in the results panel. The tool also validates your expression syntax, shows which nodes matched, and reports the full matched path for each result — useful for debugging when an expression matches more (or fewer) nodes than expected.

What makes it unique

Live Expression Testing with Matched Path Reporting

Unlike evaluating JSONPath in production code where you only see the extracted values, OmniToolsKit shows the full path to every matched node alongside its value. This lets you verify exactly which nodes in a deeply nested structure your expression selects — critical for debugging selectors in Kubernetes policies, API transformations, or data mapping configurations where an unexpected match could cause runtime errors.

Common Use Cases
1

Extracting Values from REST API Responses

Paste a complex JSON API response and write a JSONPath expression to extract only the specific fields you need — without writing JavaScript or Python parsing code manually.

2

Debugging Kubernetes and Cloud Config Selectors

Test JSONPath expressions used in Kubernetes admission webhook rules, AWS CloudFormation condition functions, or Argo Workflow parameter expressions against real payload samples.

3

Building and Testing API Assertions

Develop JSONPath assertions for API testing tools like Postman and REST Assured. Verify that your path selects the correct response field before writing test scripts.

4

Learning JSONPath Syntax Interactively

Experiment with JSONPath expressions and see immediate results. Understand wildcards, recursive descent, and filter expressions through hands-on exploration with real data.

How to Use
  1. 1

    Paste Your JSON Data

    Paste your JSON document (API response, configuration file, or any JSON object or array) into the left panel. The editor validates JSON syntax and pretty-prints the data for readability.

  2. 2

    Enter a JSONPath Expression

    Type your JSONPath expression in the query field. Start with `$` for the root, then navigate using `.key` for objects, `[0]` or `[*]` for arrays, `..` for recursive search, and `[?(@.field == value)]` for filters.

  3. 3

    View Matched Results and Paths

    Matched values appear instantly in the results panel. Each result shows its value and the full path that was matched (e.g., `$.store.books[2].title`), helping you verify the expression is targeting the correct nodes.

  4. 4

    Copy Results or Refine the Expression

    Copy individual results or the full results array to your clipboard. Refine the expression until it matches exactly the data you need, then use it in your code, config, or API test.

Features
  • Full JSONPath Syntax Support

    Supports the complete JSONPath specification: root (`$`), child (`.*`), descendants (`..`), wildcards (`[*]`), array slices (`[0:3]`), union selectors (`[key1,key2]`), and filter expressions (`[?(@.price<10)]`).

  • Live Real-Time Preview

    Results update instantly as you type. No need to run or submit — see matching values immediately as you compose or refine your JSONPath expression.

  • Matched Path Reporting

    Displays the exact path for every matched node (e.g., `$.users[3].address.city`), not just the values. Essential for verifying complex selectors and diagnosing unexpected matches.

  • Expression Validation and Error Messages

    Invalid JSONPath syntax, mismatched brackets, or unsupported operators produce clear error messages indicating where the expression is incorrect and how to fix it.

  • Source Highlighting of Matched Nodes

    Matched nodes are highlighted directly in the JSON source view, making it visually clear which parts of the document your expression selects.

  • Browser-Only, No Data Transmission

    JSONPath evaluation runs entirely in your browser. Confidential API responses, configuration files, or production data being tested never leave your device.

Frequently Asked Questions

Found this tool useful?

Share your experience and help others discover it.