- Installation Guide
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.
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.0.6</version> </dependency> </dependencies>