<commit_before># jsondiffpatch.net
<!--- badges -->
[![Build Status](https://secure.travis-ci.org/wbish/jsondiffpatch.net.svg)](http://travis-ci.org/wbish/jsondiffpatch.net)

Json object diffs and patching ([jsondiffpatch](https://github.com/benjamine/jsondiffpatch) compatible)

## Usage

The full JSON patch document format is documented at https://github.com/benjamine/jsondiffpatch. 

Note: Efficient array diff is currently NYI.

### Diff

Diff two json objects

``` C#
  var jdp = new JsonDiffPatch();
  var left = JToken.Parse(@"{ ""key"": false }");
  var right = JToken.Parse(@"{ ""key"": true }");<commit_msg>Add code coverage badge<commit_after># jsondiffpatch.net
<!--- badges -->
[![Build Status](https://secure.travis-ci.org/wbish/jsondiffpatch.net.svg)](http://travis-ci.org/wbish/jsondiffpatch.net)
[![Code Coverage](https://codeclimate.com/github/wbish/jsondiffpatch.net/badges/coverage.svg)](https://codeclimate.com/github/wbish/jsondiffpatch.net/coverage)

Json object diffs and patching ([jsondiffpatch](https://github.com/benjamine/jsondiffpatch) compatible)

## Usage

The full JSON patch document format is documented at https://github.com/benjamine/jsondiffpatch. 

Note: Efficient array diff is currently NYI.

### Diff

Diff two json objects

``` C#
  var jdp = new JsonDiffPatch();
  var left = JToken.Parse(@"{ ""key"": false }");
  var right = JToken.Parse(@"{ ""key"": true }");
{'fraction_non_alphanumeric': 0.16832386363636365, 'fraction_numerical': 0.0, 'mean_word_length': 4.822314049586777, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '6103710', 'n_tokens_mistral': 492, 'n_tokens_neox': 477, 'n_words': 105}