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

# Convert to JSON

> Serialize a workflow value as JSON text.

## Inputs

| Input      | Type    | Required | Description                                       |
| ---------- | ------- | -------- | ------------------------------------------------- |
| **Value**  | Any     | Yes      | The value to serialize.                           |
| **Pretty** | Boolean | No       | Indent nested JSON by two spaces. Defaults to on. |

## Output

| Output   | Type   | Description               |
| -------- | ------ | ------------------------- |
| **JSON** | String | The serialized JSON text. |

Turn **Pretty** off for compact payloads sent to APIs. Keep it on when humans
will read the result.

<Note>
  JSON cannot represent every runtime value. Unsupported object properties may
  be omitted, and circular structures cause serialization to fail.
</Note>
