Convert BSON to YAML
Turn BSON files into YAML. Every document, with its keys in order; several documents become a list.
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 documents as readable YAML.Every document keeps its keys in order. Special values become plain text.
What you get
One YAML file with every document from the BSON file. Each document keeps its keys in the order they had. When the BSON file holds several documents, they become a list.
How values are written
ObjectIds become hex text. Dates become ISO 8601 text. Binary data becomes base64, and UUIDs are written in their usual text form.
Decimal128 values become decimal text. Timestamps and DBRefs become small objects.
When it fails
If the file could not be parsed, the conversion stops with
input_corrupted.To go the other way, use YAML to BSON.
BSON and YAML.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
YAML
YAML configuration and data files.
- Extensions
- .yaml .yml
- MIME type
- application
/yaml - Kind
- Text and data
In your code.The same BSON to YAML conversion through the API, for your app or your agent.
$ cv convert report.bson report.yaml$ cv convert report.bson report.yamlQuestions.What people ask about BSON to YAML.
Yes. Every document keeps its keys in order.
They become a list in the YAML file.
ObjectIds become hex text. Dates become ISO 8601 text.
The file could not be parsed. The conversion stops with input_corrupted in that case.