> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# serializeContent()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function serializeContent(content): JsonValue;
```

Defined in: [testing/transcripts/format.ts:288](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/format.ts#L288)

JSON-safe copy of an outbound content. Binary payloads become
`{ $binary: { bytes, sha256 } }`, streams `{ $stream: true }`; functions and
`undefined` fields are dropped.

## Parameters

| Parameter | Type |
| - | - |
| `content` | [`OutboundContent`](https://botmesh.afaya.com.co/api/core/type-aliases/OutboundContent) |

## Returns

[`JsonValue`](https://botmesh.afaya.com.co/api/core/type-aliases/JsonValue)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.