# JPath expression

Extract information from a JSON object with a JPath query. JPath expression lives in the **Extractors** category of the `fx` menu.

## Parameters

| Parameter        | Type    | Required | Default | Description                                            |
| ---------------- | ------- | -------- | ------- | ------------------------------------------------------ |
| Input            | string  | yes      | —       | Value to transform. Previous step output or a literal. |
| Query            | string  | no       | —       | Argument value for this operation.                     |
| Result delimiter | string  | no       | `\n`    | Argument value for this operation.                     |
| Prevent eval     | boolean | no       | `true`  | Enabled by default.                                    |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                    |
| -------- | ---------------------------------------------- |
| `string` | Result of the JPath expression transformation. |

## Example

<details>
<summary>Run JPath expression</summary>

Extract information from a JSON object with a JPath query. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Query**, **Result delimiter**, **Prevent eval** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
