Query & Inspection Documentation

JSONPath Query Syntax & Real-Time Evaluator Guide

Comprehensive developer manual on JSONPath expressions (RFC 9535), recursive descent operators, slice notations, and filter expressions.

JSONPath is an expression language for querying, filtering, and extracting nodes from JSON structures, codified under IETF RFC 9535.

1. Core Operators Syntax

OperatorSyntaxDescription
Root object$The root context object or array
Child operator. or []Access named property or array index
Recursive descent..Search across all nested depths
Wildcard*Matches all elements or properties
Array slice[start:end:step]Subarray slicing
Filter expression[?(@.price < 20)]Predicate filtering on current node

2. Real-World Query Examples

// Extract all author names across any depth
$.store.book[*].author

// Filter all items where price is greater than 10 $..book[?(@.price > 10)]

// Retrieve the last two elements of an array $.orders[-2:]

Try Our Free Client-Side Developer Tools

Zero latency, 100% data privacy, and Web Worker performance.

Launch Tool →

Try Our Free Client-Side Developer Tools

Zero latency, 100% data privacy, and Web Worker performance.

Launch Tool

Related Documentation & Reference Articles