mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-01 10:18:58 +00:00
19 lines
413 B
Plaintext
19 lines
413 B
Plaintext
---
|
|
title: Encode JSON
|
|
sidebar:
|
|
label: Encode
|
|
order: 1
|
|
---
|
|
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
|
|
|
This processor will encode an incoming object into a JSON byte array. This processor will return an error if the message being processed is not able to be serialized as JSON.
|
|
|
|
<SchemaInfo type="processor" id="json.encode"/>
|
|
|
|
### Example
|
|
|
|
```yaml
|
|
- id: encode
|
|
type: json.encode
|
|
```
|