Below
table summarises the syntax that we should follow while extracting
the data from json document.
JSONPath
|
Description
|
$
|
Represents root element
|
@
|
Represent current object
|
. or []
|
Child Operator. Used to access child document.
|
..
|
Recursive descent
|
*
|
All objects
|
[]
|
Array Operator
|
[,]
|
Union operator in XPath results in a
combination of node sets. JSONPath allows alternate names or array
indices as a set.
|
[start:end:step]
|
Array Slice Operator
|
?()
|
Applies a filter or expression
|
()
|
Script Expression, using the underlying script
engine.
|
I am going to explain each JsonPath syntax in my upcoming posts.
No comments:
Post a Comment