<commit_before># BSON for Jackson [![Build Status](https://travis-ci.org/michel-kraemer/bson4jackson.svg?branch=master)](https://travis-ci.org/michel-kraemer/bson4jackson) [![Apache License, Version 2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)

This library adds support for [BSON](http://bsonspec.org) to the
[Jackson JSON processor](https://github.com/FasterXML/jackson).

BSON is a binary representation of [JSON](http://json.org/). It has
gained prominence by its usage as the main exchange and persistence
format of the document-oriented database management system
[MongoDB](http://www.mongodb.org).

## Usage

The bson4jackson library integrates completely into Jackson. Please have
a look at the [Jackson wiki](http://wiki.fasterxml.com/JacksonDocumentation)
for a complete description. For more information you may also have a
look at the [bson4jackson tutorial](https://michelkraemer.com/binary-json-with-bson4jackson).

The BSON specification defines some additional types not available in
the original JSON specification. These types are mapped to simple<commit_msg>Update CI badge in README<commit_after># BSON for Jackson [![Actions Status](https://github.com/michel-kraemer/bson4jackson/workflows/CI/badge.svg)](https://github.com/michel-kraemer/bson4jackson/actions) [![Apache License, Version 2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)

This library adds support for [BSON](http://bsonspec.org) to the
[Jackson JSON processor](https://github.com/FasterXML/jackson).

BSON is a binary representation of [JSON](http://json.org/). It has
gained prominence by its usage as the main exchange and persistence
format of the document-oriented database management system
[MongoDB](http://www.mongodb.org).

## Usage

The bson4jackson library integrates completely into Jackson. Please have
a look at the [Jackson wiki](http://wiki.fasterxml.com/JacksonDocumentation)
for a complete description. For more information you may also have a
look at the [bson4jackson tutorial](https://michelkraemer.com/binary-json-with-bson4jackson).

The BSON specification defines some additional types not available in
the original JSON specification. These types are mapped to simple
{'fraction_non_alphanumeric': 0.11550151975683891, 'fraction_numerical': 0.009552757273122015, 'mean_word_length': 5.3123287671232875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '998739', 'n_tokens_mistral': 717, 'n_tokens_neox': 662, 'n_words': 207}