JSONPath ======== 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. REFERENCES ---------- BIBLIOGRAPHY (BibTeX) -------------------- @article{ref0, title = {JSONPath}, url = {https://encyclopegia.org/a/jsonpath} } BIBLIOGRAPHY (RIS) ------------------- TY - JOUR TI - JSONPath UR - https://encyclopegia.org/a/jsonpath ER - CITE THIS ARTICLE ---------------- Cite this article: JSONPath Derived from: https://en.wikipedia.org/w/index.php?oldid=1368180693 Licence: CC BY-SA 4.0 Snapshot: enwiki-001368180693 Permalink: /a/jsonpath