---
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.

<SchemaInfo type="processor" id="json.decode"/>

### Example

```yaml
- id: decode
  type: json.decode
```
