You are currently viewing an older version of the Java driver documentation.
For the most recent version of the reference documentation, see our MongoDB Java Driver documentation site.
  • 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