Class: JSONPath
jsonpath.JSONPath
Constructors
constructor
• new JSONPath(environment
, selectors
): JSONPath
Parameters
Name | Type |
---|---|
environment | JSONPathEnvironment |
selectors | JSONPathSelector [] |
Returns
Defined in
Properties
environment
• Readonly
environment: JSONPathEnvironment
Defined in
selectors
• Readonly
selectors: JSONPathSelector
[]
Defined in
Methods
lazyQuery
▸ lazyQuery(value
): IterableIterator
<JSONPathNode
>
Parameters
Name | Type |
---|---|
value | JSONValue |
Returns
IterableIterator
<JSONPathNode
>
Defined in
match
▸ match(value
): undefined
| JSONPathNode
Return a JSONPathNode instance for the first object found in value matching this query.
Parameters
Name | Type | Description |
---|---|---|
value | JSONValue | JSON-like data to which this query will be applied. |
Returns
undefined
| JSONPathNode
The first node in value matching this query, or undefined
if
there are no matches.
Defined in
query
▸ query(value
): JSONPathNodeList
Parameters
Name | Type |
---|---|
value | JSONValue |
Returns
Defined in
singularQuery
▸ singularQuery(): boolean
Returns
boolean
Defined in
toString
▸ toString(): string
Returns
string