JSONPath
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In computer software, JSONPath is a query language for querying values in JSON. The uses of JSONPath include: * Selecting a specific node in a JSON value * Retrieving a set of nodes from a JSON value, based on specific criteria * Navigating through complex JSON values to retrieve the required data. JSONPath queries are path expressions written as strings, e.g. $.foo .
In computer software, JSONPath is a query language for querying values in JSON. The uses of JSONPath include: Selecting a specific node in a JSON value Retrieving a set of nodes from a JSON value, based on specific criteria Navigating through complex JSON values to retrieve the required data. JSONPath queries are path expressions written as strings, e.g. $.foo . { "store": { "books": [ { "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "author": "J. R. R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99 } ], "bicycle": { "color": "red", "price": 399 } } } selects the first book (by Nigel Rees): { "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 } The expression extracts the prices of books: 8.95 and 22.99 (since [*] selects all the nodes of an array). The expression extracts all the prices: 8.95, 22.99, and 399.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1368180693 under CC BY-SA 4.0; modifications have been made.