bson is a c++ implementation of the BSON serialization format used for astateful.