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
- ^ "JSONiq" . Archived from the original on 13 January 2024 . Retrieved 23 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Robie, Jonathan; Dyck, Michael; Spiegel, Josh. "XML Path Language (XPath) 3.1" . w3c.org . Archived from the original on 18 January 2024 . Retrieved 24 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Tovey-Walsh, Norman; Snelson, John; Coleman, Andrew. "XQuery and XPath Data Model" . w3c.org . Archived from the original on 18 January 2024 . Retrieved 24 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ "ZPath" . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Friesen, Jeff (11 January 2019). "Extracting JSON values with JsonPath". Java XML and JSON: Document Processing for Java SE (2nd ed.). Apress. ISBN 978-1484243299 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Jiang, Lin; Sun, Xiaofan; Farooq, Umar; Zhao, Zhijia (April 2019). "Scalable Processing of Contemporary Semi-Structured Data on Commodity Parallel Processors - A Compilation-based Approach". Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems . pp. 79– 92. doi : 10.1145/3297858.3304008 . ISBN 978-1-4503-6240-5 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Gienieczko, Mateusz; Murlak, Filip; Paperman, Charles (February 2024). "Supporting Descendants in SIMD-Accelerated JSONPath". Conference on Architectural Support for Programming Languages and Operating Systems . 4 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Brahmia, Zouhaier; Grandi, Fabio; Brahmia, Safa; Bouaziz, Rafik (2023). "τJSONPath: A Temporal Extension of the JSONPath Language for the τJSchema Framework". Artificial Intelligence and Smart Environment . Lecture Notes in Networks and Systems. Vol. 635. pp. 844– 853. doi : 10.1007/978-3-031-26254-8_123 . ISBN 978-3-031-26253-1 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Saryerwinnie, James. "JMESPath" . Archived from the original on 14 March 2024 . Retrieved 23 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Bailey, Matt. "JSONata" . Retrieved 25 March 2024 . {{ cite web }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Burgmer, Christoph. "JSONPath Comparison" . Archived from the original on 3 March 2024 . Retrieved 22 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Gössner, Stefan. "JSONPath - XPath for JSON" . Archived from the original on 11 September 2007 . Retrieved 22 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Bryan, Paul; Zyp, Kris; Nottingham, Mark (April 2013). "RFC 6901 JavaScript Object Notation (JSON) Pointer" . The RFC Series . The Internet Engineering Task Force (IETF) . Retrieved 23 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
- ^ Gössner, Stefan; Normington, Glyn; Bormann, Carsten (February 2024). "RFC 9535 JSONPath: Query Expressions for JSON" . The RFC Series . The Internet Engineering Task Force (IETF) . Retrieved 22 March 2024 . Wikipedia revision 1368180693, retrieved 2026-11-18 · 1794956400.0
Cite this
"JSONPath". 1786104688. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1368180693