JSON Path Query

Query JSON data using JSONPath expressions. Online testing and debugging.

Common Expressions

Usage

JSONPath Expression

JSONPath is a query language for extracting values from JSON data, similar to XPath for XML.

Common Syntax

  • $:Root element
  • .key or ["key"]: Access child element
  • [n]:Array index (negative supported)
  • [*]:All child elements
  • ..key:Recursive descent
  • [?(expr)]:Filter expression

Tips

Query runs automatically after JSON input (with 500ms debounce). Click common expression cards to quickly fill the query path.