cbor-to-json
Latest Version | v1.0.0 |
Input Content Type | application/cbor |
Output Content Type | application/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
}