Convert JSON to CBOR
Turn JSON files into CBOR. The same structure and key order in CBOR, with integers, floats, booleans, null, text, arrays and maps keeping their types and dates as text.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSON files on the dialor turn it to pick what to do
JSON in a compact binary form.The structure and key order stay the same, written as CBOR.
What you get
One CBOR file with the same structure as your JSON. Objects and arrays keep their nesting, and keys stay in the order they have in the JSON file.
Each value keeps its type. Integers, floats, booleans, null and text stay what they are, and arrays and maps stay arrays and maps.
Dates stay text
JSON has no date type, so a date in your file is text. It stays text in the CBOR file and is not turned into a date value.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. The JSON must be readable before it can be written as CBOR.To go the other way, use CBOR to JSON. For other formats, see every JSON conversion.
JSON and CBOR.What each format is.
The formats
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
CBOR
Concise Binary Object Representation, the binary JSON of IoT and web standards.
- Extensions
- .cbor
- MIME type
- application
/cbor - Kind
- Text and data
In your code.The same JSON to CBOR conversion through the API, for your app or your agent.
$ cv convert report.json report.cbor$ cv convert report.json report.cborQuestions.What people ask about JSON to CBOR.
Yes. The structure and key order in the CBOR file match your JSON.
Yes. Integers, floats, booleans and null keep their types, and text stays text.
They stay as text. Nothing turns them into a date type.
The file could not be parsed. The conversion stops with input_corrupted when that happens.