> ## 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.

# Respond JSON

> Serialize a value as JSON and return it to an HTTP caller.

**Respond JSON** serializes any connected value and returns it with an
`application/json` content type. It works with the **URL**, **Form Submission**,
and **Webhook** triggers.

## Inputs

| Input      | Type    | Required | Description                                                 |
| ---------- | ------- | -------- | ----------------------------------------------------------- |
| **Body**   | Any     | Yes      | The value to serialize.                                     |
| **Status** | Number  | No       | An HTTP status code from `100` to `599`. Defaults to `200`. |
| **Pretty** | Boolean | No       | Adds two-space indentation to the JSON. Defaults to on.     |

## Example

Connect an object containing `ok` and `orderId` to **Body**. The caller receives:

```json theme={null}
{
  "ok": true,
  "orderId": "ord_123"
}
```

<Tip>
  Turn **Pretty** off for smaller production responses. Formatting changes
  whitespace only, not the returned data.
</Tip>
