JSONPath Tester

Test JSONPath expressions against JSON data. Free online JSONPath tester and query tool.

Common JSONPath Expressions

$ - Root object

$.store.book[*].author - All authors

$..author - All authors (recursive)

$.store.* - All things in store

$..book[0,1] - First two books

$..book[?(@.price < 10)] - Books cheaper than 10

About JSONPath

JSONPath is a query language for JSON, similar to XPath for XML. It allows you to extract specific data from JSON documents using path expressions.

Features

  • Test JSONPath expressions against JSON data
  • Real-time query evaluation
  • Support for basic JSONPath syntax
  • Clear error messages for invalid queries
  • Formatted JSON output

JSONPath Syntax

  • $ - Root element
  • @ - Current element (in filters)
  • . or [] - Child operator
  • .. - Recursive descent
  • * - Wildcard (all elements)
  • [] - Array subscript
  • [,] - Array indices or names
  • [start:end:step] - Array slice

Note

This is a basic JSONPath implementation. Advanced features like filters and complex expressions may have limited support. For production use, consider using a full-featured JSONPath library.