JSONPath

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

Name Language
JayWay JsonPath 1) Java
Groovy GPath 2) Groovy

JsonPath

supported in idea

3) 4)

JMESPath

JMESPath is a query language for JSON that:

  • takes a JSON document
  • and transform it into another JSON document

through a JMESPath expression.

Library: https://www.npmjs.com/package/jmespath







Share this page:
Follow us:
Task Runner