Giter Site home page Giter Site logo

danieljoyce / bson4jackson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michel-kraemer/bson4jackson

1.0 2.0 0.0 1.21 MB

A pluggable BSON generator and parser for Jackson JSON processor.

Home Page: http://www.michel-kraemer.com/binary-json-with-bson4jackson

License: Apache License 2.0

bson4jackson's Introduction

BSON for Jackson

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

BSON is a binary representation of JSON. It has gained prominence by its usage as the main exchange and persistence format of the document-oriented database management system MongoDB.

Usage

The bson4jackson library integrates completely into Jackson. Please have a look at the Jackson wiki for a complete description. For more information you may also have a look at the bson4jackson tutorial.

The BSON specification defines some additional types not available in the original JSON specification. These types are mapped to simple wrapper objects.

Download

bson4jackson binaries are available from the GitHub Download page.

You may also use Maven to download bson4jackson:

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

If you're using sbt, you may add the following line to your project:

val bson4jackson = "de.undercouch" % "bson4jackson" % "1.3.0"

For buildr use the following snippet:

compile.with 'de.undercouch:bson4jackson:jar:1.3.0'

Compatibility

bson4jackson is compatible to Jackson 1.7 and higher. It has already been tested successfully with Jackson 1.8 and 1.9.

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.

Compiling

You need buildr in order to compile the bson4jackson library. Please follow the instructions on the buildr website.

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

buildr compile test

If everything runs successfully, you may create a .jar library:

buildr clean package

The library will be located under the target directory.

Eclipse

buildr includes a task that creates the files required to develop bson4jackson in Eclipse. Run the following command:

buildr eclipse

Then import the project into your workspace. If Eclipse complains about your classpath, make sure the variable M2_REPO is set to your local Maven repository. You can change that variable under "Window/Preferences/Java/Build Path/Classpath Variables".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.