<commit_before># mongodb-extended-json

[![build status](https://secure.travis-ci.org/imlucas/mongodb-extended-json.png)](http://travis-ci.org/imlucas/mongodb-extended-json)

[MongoDB Extended JSON][ejson] parse and stringify that is friendly with
[bson][bson] and is actually compliant with the [kernel][json_cpp].

## Example

```javascript
var EJSON = require('mongodb-extended-json');
var BSON = require('bson');

var doc = {
  _id: BSON.ObjectID(),
  last_seen_at: new Date(),
  display_name: undefined
};

console.log('Doc', doc);
// > Doc { _id: 53c2ab5e4291b17b666d742a, last_seen_at: Sun Jul 13 2014 11:53:02 GMT-0400 (EDT), display_name: undefined }<commit_msg>Fix #7 bad Travis link in README<commit_after>﻿# mongodb-extended-json

[![build status](https://secure.travis-ci.org/mongodb-js/extended-json.png)](http://travis-ci.org/mongodb-js/extended-json)

[MongoDB Extended JSON][ejson] parse and stringify that is friendly with
[bson][bson] and is actually compliant with the [kernel][json_cpp].

## Example

```javascript
var EJSON = require('mongodb-extended-json');
var BSON = require('bson');

var doc = {
  _id: BSON.ObjectID(),
  last_seen_at: new Date(),
  display_name: undefined
};

console.log('Doc', doc);
// > Doc { _id: 53c2ab5e4291b17b666d742a, last_seen_at: Sun Jul 13 2014 11:53:02 GMT-0400 (EDT), display_name: undefined }
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.04807692307692308, 'mean_word_length': 5.352112676056338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5464248', 'n_tokens_mistral': 555, 'n_tokens_neox': 489, 'n_words': 114}