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.
See the MongoDB Java Driver documentation site for version 4.3 and later versions of the reference documentation.
- BSON
- Installation Guide
Installation
The BSON library is a required dependency of all the MongoDB Java drivers and if using a dependency management system, it will be automatically installed alongside the driver, however, it can be used as a standalone library. The recommended way to get started using one of the drivers in your project is with a dependency management system.
BSON
This library comprehensively supports BSON, the data storage and network transfer format that MongoDB uses for “documents”. BSON is short for Binary JSON, is a binary-encoded serialization of JSON-like documents.
<dependencies>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>4.3.3</version>
</dependency>
</dependencies>
On this page