@@ -24,6 +24,7 @@ not they are contained in brackets.
2424
2525Atomic expressions:
2626
27+ Syntax | Meaning
2728------------------------------|-------------------
2829` $ ` | The root object
2930_ field_ | Specified field(s), described below
@@ -32,24 +33,29 @@ _field_ | Specified field(s), described below
3233
3334Jsonpath operators:
3435
36+ Syntax | Meaning
3537---------------------------------------|---------------------------------------------------------------------
3638_ jsonpath1_ ` . ` _ jsonpath2_ | All nodes matched by _ jsonpath2_ starting at any node matching _ jsonpath1_
3739_ jsonpath_ ` [ ` _ whatever_ ` ] ` | Same as _ jsonpath_ ` . ` _ whatever_
3840_ jsonpath1_ ` .. ` _ jsonpath2_ | All nodes matched by _ jsonpath2_ that descend from any node matching _ jsonpath1_
3941_ jsonpath1_ ` where ` _ jsonpath2_ | Any nodes matching _ jsonpath1_ with a child matching _ jsonpath2_
40- _ jsonpath1_ ` | ` _ jsonpath2_ | Any node matching either _ jsonpath1_ or _ jsonpath2_
4142
42- Field specifiers (_ field_ ):
43+ Also _ jsonpath1_ ` | ` _ jsonpath2_ for union (but I have not convinced Github-Flavored Markdown to allow
44+ me to put that in a table)
4345
46+ Field specifiers ( _ field_ ):
47+
48+ Syntax | Meaning
4449----------------------------|----------------------------------------
4550` fieldname ` | the field ` fieldname ` (from the "current" object)
4651` "fieldname" ` | same as above, for allowing special characters in the fieldname
4752` 'fieldname' ` | ditto
4853` * ` | any field
4954_ field_ ` , ` _ field_ | either of the named fields (you can always build equivalent jsonpath using ` | ` )
5055
51- Array specifiers (_ idx_ ):
56+ Array specifiers ( _ idx_ ):
5257
58+ Syntax | Meaning
5359---------------------------------------|----------------------------------------
5460 - ` [ ` _ n_ ` ] ` | array index (may be comma-separated list)
5561 - ` [ ` _ start_ ` ?: ` _ end_ ` ?] ` | array slicing (note that _ step_ is unimplemented only due to lack of need thus far)
0 commit comments