Convert JSON5 to CBOR
Turn JSON5 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 JSON5 files on the dialor turn it to pick what to do
JSON5 as compact binary CBOR.The structure and key order stay the same. Comments are dropped.
What you get
One CBOR file with the same structure and key order as your JSON5 file. Maps, arrays and text keep their shape from start to finish.
Integers, floats, booleans, null and text keep their types. Dates are stored as text, not as a CBOR date type.
What changes
Comments are dropped. They do not appear in the CBOR file.
JSON5 numbers become plain numbers. JSON5 allows number forms that plain JSON does not, and these come out as ordinary numeric values in CBOR.
Going the other way
To turn a CBOR file back into JSON5, use CBOR to JSON5. Comments dropped in this direction are not restored.
JSON5 and CBOR.What each format is.
The formats
JSON5
JSON with comments, trailing commas and unquoted keys.
- Extensions
- .json5
- MIME type
- application
/json5 - 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 JSON5 to CBOR conversion through the API, for your app or your agent.
$ cv convert report.json5 report.cbor$ cv convert report.json5 report.cborQuestions.What people ask about JSON5 to CBOR.
Yes. The CBOR file keeps the same structure and key order as the JSON5 file.
They are dropped. The CBOR file holds no comments.
No. Dates are kept as text.
Integers and floats keep their types. JSON5 numbers become plain numbers.