Skip to content

michel-kraemer/bson4jackson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

368 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSON for Jackson Actions Status Apache License, Version 2.0

This library adds support for BSON to the Jackson JSON processor.

BSON is a binary representation of JSON. It is well known as the main exchange and persistence format of MongoDB.

Quick start

Just create a Jackson ObjectMapper with a BsonFactory as follows:

ObjectMapper mapper = JsonMapper.builder(new BsonFactory()).build();

For more information, you may read my bson4jackson tutorial or the complete documentation of Jackson.

Download

bson4jackson binaries are available from the GitHub releases page.

You may also use Maven to download bson4jackson:

<dependencies>
    <dependency>
        <groupId>de.undercouch</groupId>
        <artifactId>bson4jackson</artifactId>
        <version>3.1.0</version>
    </dependency>
</dependencies>

If you are using Gradle, you may add the following snippet to your build.gradle:

dependencies {
    implementation 'de.undercouch:bson4jackson:3.1.0'
}

Compatibility

bson4jackson 3.x is compatible with Jackson 3.x and requires Java 17 or later.

If you are looking for a version compatible with Jackson 2.x, please use bson4jackson 2.18.0. It's the last version for the 2.x branch.

If you are looking for a version compatible with Jackson 1.x, please use bson4jackson 1.3.0.

Compiling

Execute the following command to compile the library and to run the unit tests:

./gradlew test

The script automatically downloads the correct Gradle version so you won't have to do anything else. If everything runs successfully, you may create a .jar library:

./gradlew jar

The library will be located under build/libs.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on how to report bugs and submit pull requests.

License

bson4jackson is licensed under the Apache License, Version 2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

🦬 A pluggable BSON generator and parser for the Jackson JSON processor.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages