Convert CBOR to BSON
Turn CBOR files into BSON. One BSON document with the same keys in order; a top-level list is wrapped under the key items and any other value under value.
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 data as one BSON document.Keys keep their order, and values keep their types.
What you get
One BSON file holding a single document. The keys come out in the same order as in the CBOR file. Integers, floats, booleans, null, text, nested objects and lists keep their types.
How values are wrapped
BSON needs a document at the top. If the CBOR file holds a top-level list, it is wrapped under the key items. Any other top-level value that is not an object is wrapped under the key value.
What changes
Dates stay text. Byte strings become base64 text, and epoch times become ISO 8601 text.
Integers beyond the signed 64-bit range become floats.
Going back
To turn a BSON file into CBOR, use BSON to CBOR. For other CBOR conversions, see every CBOR conversion.
CBOR and BSON.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
BSON
MongoDB's binary document encoding, JSON with dates and binary fields.
- Extensions
- .bson
- MIME type
- application
/bson - Kind
- Text and data
In your code.The same CBOR to BSON conversion through the API, for your app or your agent.
$ cv convert report.cbor report.bson$ cv convert report.cbor report.bsonQuestions.What people ask about CBOR to BSON.
Yes. The BSON document has the same keys in the same order.
It is wrapped under the key items, because the BSON file must hold a document.
They become base64 text.
Integers beyond the signed 64-bit range become floats. Integers inside that range stay integers.