This reference documentation site is for versions of the MongoDB Java synchronous driver up to 4.3-beta.
See the MongoDB Java Driver documentation site for version 4.3 and later versions of the reference documentation.
  • BSON

BSON

The BSON library comprehensively supports BSON, the data storage and network transfer format that MongoDB uses for “documents”. BSON, short for Binary JSON, is a binary-encoded serialization of JSON-like documents.

  • Documents: Documentation of the driver’s support for BSON document representations
  • Readers and Writers: Documentation of the driver’s support for stream-based reading and writing of BSON documents
  • JSON: Documentation of the driver’s support for JSON
  • Codec and CodecRegistry: Documentation of the driver’s Codec API, an abstraction for producing and consuming BSON document representations using the stream-based readers and writers
  • POJOs: Documentation of the driver’s POJO support.
On this page