JSONPath / JMESPath
About
JsonPath is used to query and get values from JSON (ie or Javascript Object document)
It's the same concept than XPath for XML
It's a selector language for json.
Selector language
Language | Equivalent Expression |
---|---|
XPath | /store/book[1]/title |
JSONPath | $.store.book[0].title |
JsonPointer | /store/book/0/title |
JQ | .store.book[0].title |
Implementation
JsonPath
supported in idea
JMESPath
JMESPath is a query language for JSON that:
- takes a JSON document
- and transform it into another JSON document
through a JMESPath expression.