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:]

Put this into practice with the JSONPath Tester

Runs entirely in your browser — no upload, no signup, and your data never leaves your device.

Open JSONPath Tester →

Tools referenced in this document

Related Documentation & Reference Articles