# Format JSON

> Indent a JSON string for readability.

- ID: `format_json`
- Type: Block
- Category: [Network](https://inventor.bot/docs/reference/blocks/network.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `json_string` | yes | JSON string to format. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `formatted_json` | Pretty-printed JSON string. | e.g. `"{\n  \"key\": \"value\"\n}"` |

**Example**

```go
formatJson := format_json(Args{json_string: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Formatted JSON: " + formatJson.formatted_json,
})
```