---
title: JSONPath
slug: jsonpath
qid: 
snapshot: enwiki-001368180693
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1368180693
tags: [125876068, 23118434, 23603337, 31128808, 62888473]
---

# JSONPath

> [!note] Provenance
> Snapshot `enwiki-001368180693` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1368180693> · Licensed CC BY-SA 4.0

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.
