Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2abaf91

Browse files
committed
Adjusting README.md from pandoc to github markdown
1 parent a82e2e7 commit 2abaf91

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ not they are contained in brackets.
2424

2525
Atomic 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

3334
Jsonpath 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

Comments
 (0)