• Stars
    star
    289
  • Rank 143,018 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 14 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 = new ObjectMapper(new BsonFactory());

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>2.13.1</version>
    </dependency>
</dependencies>

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

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

Compatibility

The latest version of bson4jackson is backward compatible to all versions of Jackson 2.x released up to date. It should be compatible to newer versions as well. If you experience compatibility issues, just let me know.

If you are looking for a version compatible to Jackson 1.x, please use bson4jackson 1.3.0. It's the last version for the 1.x branch. bson4jackson 1.3.0 is compatible to Jackson 1.7 up to 1.9.

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.

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.

More Repositories

1

gradle-download-task

πŸ“₯ Adds a download task to Gradle that displays progress information
Java
670
star
2

citeproc-java

πŸ“˜ A Citation Style Language (CSL) processor for Java.
Java
88
star
3

actson

A reactive (or non-blocking, or asynchronous) JSON parser
Java
75
star
4

vertx-lang-typescript

TypeScript support for Vert.x 3
Java
57
star
5

actson-rs

🎬 A reactive (or non-blocking, or asynchronous) JSON parser
Jupyter Notebook
29
star
6

sudocle

A modern web app for Sudoku inspired by Cracking the Cryptic
TypeScript
13
star
7

asciidoc-toolchain

Complete AsciiDoc to PDF conversion with only one command
XSLT
8
star
8

gitaliases

Bash aliases and functions for easier use of git
Shell
6
star
9

metalsmith-brotli

Metalsmith plugin compressing files using brotli.
JavaScript
5
star
10

gpanalyze2

A tool to analyze my personal GPS tracks using Vert.x and Angular Material
Java
3
star
11

citationstyles-snapshot-updater

Publishes snapshots for CSL styles and locales daily to the Sonatype OSS repository
JavaScript
2
star
12

dissertation

A Microservice Architecture for the Processing of Large Geospatial Data in the Cloud
TeX
2
star
13

michelkraemer.com-discussions

Blog comments of michelkraemer.com
1
star
14

vertx-lang-typescript-typings

TypeScript typings for Vert.x 3
1
star
15

spamihilator-setup-wizard

Spamihilator's Online Setup Wizard
Scala
1
star
16

ucsync

Simple tool to keep local and remote directories in sync. Written in Scala.
Scala
1
star
17

underline

A Git-like command-line parser for Java with no strings attached
Java
1
star
18

frictionless

Check your projects to avoid contributor friction and reduce TTFC (time to first commit). Written in JavaScript for Node.js.
JavaScript
1
star