Skip to content

Writing and reading BSON data #1368

Description

@snirgaz

I would like to read and write my data to a file using the BSON format.
It would be nice to have an example explaining how to achieve that.

The conversion to BSON format is explained very cleary,
std::vector<std::uint8_t> v_bson = json::to_bson(j);
What is less clear (atleast to me) is how to write (and subsequently read) v_bson to a binary file while maintaining compatability with the BSON file format allowing it to be read by python e.g.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions