Convert BSON to INI
Turn BSON files into INI. Top-level objects become [sections] and plain top-level values come first, and an object inside a section becomes its own section named with a dot, such as [server.tls].
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop BSON files on the dialor turn it to pick what to do
BSON settings as an INI file.Objects become sections, and lists become repeated keys.
What you get
One INI file. Plain top-level values come first, and each top-level object becomes its own [section]. An object inside a section becomes a section named with a dot, such as [server.tls].
A top-level list becomes one section per entry, numbered from 0 under items, as [items.0]. An entry that is not an object goes under the key value.
How values are written
INI has no types for dates, IDs or binary data, so these are written as text. ObjectIds become hex text, dates become ISO 8601 text and binary data becomes base64.
A list becomes a repeated key, one line per item. An empty list writes no key, so it disappears from the file.
What does not fit
INI has no way to nest a list inside a list or an object inside a list. Those items are written as JSON text on the key's line.
To go the other way, use INI to BSON. Other targets are listed under every BSON conversion.
BSON and INI.What each format is.
The formats
BSON
MongoDB's binary document encoding, JSON with dates and binary fields.
- Extensions
- .bson
- MIME type
- application
/bson - Kind
- Text and data
INI
Sections of key and value pairs, the settings format of Windows and many tools.
- Extensions
- .ini .cfg
- MIME type
- text
/x -ini - Kind
- Text and data
In your code.The same BSON to INI conversion through the API, for your app or your agent.
$ cv convert report.bson report.ini$ cv convert report.bson report.iniQuestions.What people ask about BSON to INI.
Each object inside a section becomes its own section with a dotted name. An object named tls inside server becomes [server.tls].
It becomes a repeated key, with one line per item. An empty list is left out of the file.
Dates are written as ISO 8601 text. ObjectIds are written as hex text.
Each entry becomes a section named [items.0], [items.1] and so on. An entry that is not an object is stored under the key value.