# MSG to JSON

Converts Outlook MSG file to JSON format. MSG 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. |
| Attachment encoding | string | no       | `base64` | Encoding format for attachment content                 |

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

## Returned value

| Type     | Description                               |
| -------- | ----------------------------------------- |
| `object` | Result of the MSG to JSON transformation. |

## Example

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

Converts Outlook MSG file 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 **Attachment encoding** and keep defaults unless your format requires otherwise.

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

</details>
