# Extract Prices with JSONPath

**Use case:** 

Run JSONPath expressions against a product catalog JSON document and export every matched price with result paths.

## Input

```json
{
  "jsonInput": "{\"store\":{\"book\":[{\"title\":\"Reference Guide\",\"price\":8.95},{\"title\":\"Novel\",\"price\":12.99}],\"bicycle\":{\"color\":\"red\",\"price\":19.95}}}",
  "expressions": [
    "$..price"
  ],
  "includeResultPath": true,
  "flattenResults": true,
  "wrapSingleValue": true
}
```

## Output

```json
{
  "expression": {
    "label": "Expression",
    "format": "text"
  },
  "resultPath": {
    "label": "Path",
    "format": "text"
  },
  "matchIndex": {
    "label": "Match #",
    "format": "number"
  },
  "value": {
    "label": "Value",
    "format": "text"
  },
  "valueType": {
    "label": "Type",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [JSONPath Extractor](https://apify.com/automation-lab/jsonpath-extractor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/jsonpath-extractor) to learn more, explore other use cases, and run it yourself.