JsonPath Cheatsheet

Last modified: February 28, 2023

Basic operations

Identity operator($.)
$.
Object Identifier-Index
$.foo
$.address.city
generic object index
$.["name"]
$.address.["postal-code"]
$.["address"].["postal-code"]

Array Operations

array index
$.[2]
$.carOptions[1]
array/string slice
$.[10:]
$.[10:15]
$.[:15]

deep-scan ..

scan in each element of array
$.options..price