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.
For the most recent version of the reference documentation, see our MongoDB Java Driver documentation site.
- 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>3.7.1</version>
</dependency>
</dependencies>
Note: You can also download the bson
jar
directly
from sonatype.
On this page