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.
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.
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.
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
CBOR
Concise Binary Object Representation, the binary JSON of IoT and web standards.
- Extensions
- .cbor
- MIME type
- application
/cbor - Kind
- Text and data
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.
$ cv convert report.cbor report.json$ cv convert report.cbor report.jsonQuestions.What people ask about CBOR to JSON.
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.