Skip to main content

cbor-to-json

Latest Versionv1.0.0
Input Content Typeapplication/cbor
Output Content Typeapplication/json

The cbor-to-json transformer converts data in the Concise Binary Object Representation (CBOR) to JSON. If the content type of the input data is not CBOR, or the content itself is not valid CBOR, the message will be dropped.

Example Usage

    transformer:
type: cbor-to-json
version: v1

Example Input

CBOR data shown as hex encoded for visualiztion purposes only.

A1             # map(1)
64 # text(4)
74656D70 # "temp"
18 20 # unsigned(32)

Example Output

{
"temp": 32
}