> ## Documentation Index
> Fetch the complete documentation index at: https://docs.requestly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Filter a JSON Response

> Narrow a JSON response in Requestly to just the values you care about using a JSONPath expression in the Preview view.

When an endpoint returns a large JSON response, scrolling to the few fields you actually care about is slow. The **Preview** view of the response body lets you type a JSONPath expression and narrow the displayed JSON to only the matching values, the same way Postman does.

## Open the filter bar

The filter is available in the **Preview** view when the response is JSON.

<Steps>
  <Step title="Send a request that returns JSON">
    Send any request whose response is JSON. The body opens in the **Preview** view, formatted and syntax-highlighted.
  </Step>

  <Step title="Click the funnel icon">
    In the response body toolbar, click the funnel icon on the right. A full-width filter bar appears below the toolbar.

    <Frame>
      <img src="https://mintcdn.com/requestly/EuyRJ2u2abyeba23/images/response-json-filter-bar.light.png?fit=max&auto=format&n=EuyRJ2u2abyeba23&q=85&s=76d0e0fe8c86a139bfb37d4b2b567c0b" alt="The JSON response Preview view with the funnel icon highlighted and the filter bar revealed below the toolbar" className="dark:hidden" width="1280" height="800" data-path="images/response-json-filter-bar.light.png" />

      <img src="https://mintcdn.com/requestly/EuyRJ2u2abyeba23/images/response-json-filter-bar.dark.png?fit=max&auto=format&n=EuyRJ2u2abyeba23&q=85&s=d7f32c699df13b095f1dbe3afbc766f0" alt="The JSON response Preview view with the funnel icon highlighted and the filter bar revealed below the toolbar" className="hidden dark:block" width="1280" height="800" data-path="images/response-json-filter-bar.dark.png" />
    </Frame>
  </Step>

  <Step title="Type a JSONPath expression">
    Enter an expression such as `$.store.book[*].author`. The displayed JSON narrows to the matched values as you type.

    <Frame>
      <img src="https://mintcdn.com/requestly/EuyRJ2u2abyeba23/images/response-json-filter-applied.light.png?fit=max&auto=format&n=EuyRJ2u2abyeba23&q=85&s=336c3d536e09507ec91d4448f185da9d" alt="A JSON response narrowed to the matched values after typing a JSONPath expression in the filter bar" className="dark:hidden" width="1280" height="800" data-path="images/response-json-filter-applied.light.png" />

      <img src="https://mintcdn.com/requestly/EuyRJ2u2abyeba23/images/response-json-filter-applied.dark.png?fit=max&auto=format&n=EuyRJ2u2abyeba23&q=85&s=6ce7523f0c25f50fe15cc79f877ecf98" alt="A JSON response narrowed to the matched values after typing a JSONPath expression in the filter bar" className="hidden dark:block" width="1280" height="800" data-path="images/response-json-filter-applied.dark.png" />
    </Frame>
  </Step>
</Steps>

## Write the expression

The filter uses standard JSONPath. A few common patterns:

| Expression                 | Selects                                         |
| -------------------------- | ----------------------------------------------- |
| `$.store.book[*].author`   | The `author` of every book under `store.book`   |
| `$.items[?(@.price < 10)]` | Every item in `items` whose `price` is below 10 |
| `$.headers`                | The whole `headers` object                      |
| `$.results[0]`             | The first element of the `results` array        |
