AnyNPC
$
JSON InputValid JSON
30 lines, 556 chars
Result

Enter JSON data and a JSONPath expression to see results

JSONPath Tester — Online JSONPath Expression Evaluator & Debugger

Free online JSONPath tester and evaluator for querying JSON data. Test JSONPath expressions in real-time with full syntax support including dot/bracket notation, wildcards, recursive descent (..), array slices, filter expressions [?()], and length() function. Features real-time evaluation as you type, match count display, formatted JSON results, built-in example paths library, JSON validation with clear error messages, and one-click copy results. All processing runs locally in your browser — no server uploads, works offline.

Features

  • Real-time JSONPath evaluation — see query results update instantly as you type your expression
  • Full JSONPath syntax support including dot notation, bracket notation, wildcards, and recursive descent
  • Array slice operator [start:end:step] for extracting sub-arrays from JSON data
  • Filter expression support [?(@.key comparison value)] for conditional data extraction
  • Recursive descent (..) to search deeply nested JSON structures for matching keys
  • Built-in path examples library with common JSONPath patterns for quick learning
  • Match count display showing exactly how many results your expression returns
  • Formatted JSON output with syntax highlighting for easy result inspection
  • One-click copy results to clipboard for use in your code or documentation
  • JSON validation with clear error messages for invalid input or malformed paths
  • Negative array index support (e.g., [-1] for last element)
  • length() function support for counting array elements in results

How to Use

  1. 1Paste or type your JSON data in the left textarea. The editor validates JSON in real-time — a green indicator means valid, red means there's an error.
  2. 2Enter a JSONPath expression in the input field, starting with $. For example, $.store.book[*].title selects all book titles.
  3. 3Use the example paths dropdown to load common JSONPath patterns and see how they work against your data.
  4. 4View the query results on the right panel — matched values are shown as formatted JSON with a match count.
  5. 5Click the copy button to copy results to your clipboard, or use Clear to reset the workspace.
  6. 6Experiment with filter expressions like [?(@.price < 10)] to extract data matching specific conditions.

Frequently Asked Questions

Related Tools