-
-
Notifications
You must be signed in to change notification settings - Fork 13
JSONPath
Mike Ralphson edited this page Feb 26, 2016
·
4 revisions
JSONPath Support
See JSONPath spec.
XPath JSONPath Description
/ $ Supported. the root object/element
/ . or [] Supported. child operator
.. ^ Supported. parent operator - unoffical jpath extension
// .. Supported. recursive descent. JSONPath borrows this syntax from E4X.
* * Supported. wildcard. All objects/elements regardless their names.
@ @ Supported. attribute access - unofficial jpath extension
[] [] Supported. subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator.
() n/a Same. grouping in Xpath
. @ the current object/element
| [,] Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set.
n/a [start:end:step] array slice operator borrowed from ES4.
[] ?() applies a filter (script) expression.
n/a () script expression, using the underlying script engine.
Functions requiring 'eval'ing a script expression will probably not be implemented.