# CSV to JSON

Converts a CSV to JSON format. CSV to JSON lives in the **Custom** category of the `fx` menu.

## Parameters

| Parameter       | Type    | Required | Default | Description                                            |
| --------------- | ------- | -------- | ------- | ------------------------------------------------------ |
| Input           | string  | yes      | —       | Value to transform. Previous step output or a literal. |
| Delimiter       | string  | no       | —       | Choose the delimiter used in your CSV                  |
| Include headers | boolean | yes      | `true`  | Check if your CSV contains a header line               |

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

## Returned value

| Type     | Description                               |
| -------- | ----------------------------------------- |
| `string` | Result of the CSV to JSON transformation. |

## Example

<details>
<summary>Run CSV to JSON</summary>

Converts a CSV to JSON format. 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 **Delimiter**, **Include headers** and keep defaults unless your format requires otherwise.

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

</details>
