Convert CBOR to JSON

Turn CBOR files into JSON. The same structure and key order; a CBOR sequence becomes a list.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CBOR files on the dialor turn it to pick what to do

CBOR as readable JSON text.The structure and key order stay the same, written as JSON.

  1. What you get

    One JSON file with the same structure and the same key order as the CBOR file. A CBOR sequence becomes a list.

  2. What changes

    JSON has no byte strings, so byte strings become base64 text. Epoch times (tag 1) become ISO 8601 text.

    Other tags are unwrapped, so the value inside is kept and the tag is dropped. Integers beyond 64 bits become text.

  3. When it fails

    If the file could not be parsed, the conversion stops with input_corrupted. No JSON file is produced in that case.

CBOR and JSON.What each format is.

The formats

From · CBOR

CBOR

Concise Binary Object Representation, the binary JSON of IoT and web standards.

Extensions
.cbor
MIME type
application/cbor
Kind
Text and data
To · JSON

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
Kind
Text and data

In your code.The same CBOR to JSON conversion through the API, for your app or your agent.

terminal
$ cv convert report.cbor report.json
$ cv convert report.cbor report.json

Questions.What people ask about CBOR to JSON.

01OF 04

Yes. The JSON file has the same structure and key order as the CBOR file.

They become base64 text, because JSON has no byte strings.

A CBOR sequence becomes a list in the JSON file.

Yes. JSON to CBOR converts JSON files to CBOR.

More conversions.Other ways in and out of CBOR and JSON.