# JSONPath Query Example for Books

**Use case:** 

Extract authors and low-price book titles from nested bookstore JSON using wildcards and filter expressions.

## Input

```json
{
  "jsonInput": "{\"store\":{\"book\":[{\"category\":\"reference\",\"author\":\"Nigel Rees\",\"title\":\"Sayings of the Century\",\"price\":8.95},{\"category\":\"fiction\",\"author\":\"Evelyn Waugh\",\"title\":\"Sword of Honour\",\"price\":12.99},{\"category\":\"fiction\",\"author\":\"Herman Melville\",\"title\":\"Moby Dick\",\"price\":8.99}]}}",
  "expressions": [
    "$.store.book[*].author",
    "$.store.book[?(@.price < 10)].title"
  ],
  "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.