--- 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. ### Example ```yaml - id: encode type: json.encode ```