--- title: Decode JSON sidebar: label: Decode order: 2 --- import SchemaInfo from '../../../../components/SchemaInfo.astro'; Convert an incoming byte array or raw string into a JSON object. This processor will return an error if the message being processed is not an array of bytes or a raw string, or if the bytes/string cannot be parsed as JSON. ### Example ```yaml - type: json.decode ```