The following JSONPath syntax reflects the JSONPath specification (https://goessner.net/articles/JsonPath/).
. [ $ [children [...]] ] .
Syntax Elements
- $
- The root object or element.
- children
{.|..} { child_specification | options }
- child_specification
{ * | name_string [ options ] }
- options
[ { index | expression | filter } ]
You must type the colored or bold brackets.- index
{ * | integer [ : | , integer | : integer : integer ] | : integer }
- expression
( @.LENGTH [ {+|-|*|/} integer ] )
- filter
?(@.element_string [ number_comparison | =~string ] )
- number_comparison
{ <= | < | > | >= | == | != } integer
- @
- The current object or element.
- integer
- A signed integer.
- element_string
- A string specifying the name of an element.
- =~ string
- String comparison expression.