json_diff library

A library for determining the difference between two JSON objects.


In order to diff two JSON objects, stored as Dart strings, create a new JsonDiffer, passing the two objects:

JsonDiffer differ = new JsonDiffer(leftJsonString, rightJsonString)

To calculate the diff between the two objects, call diff() on the JsonDiffer, which will return a DiffNode:

DiffNode diff = differ.diff();

This DiffNode object is a hierarchical structure (like JSON) of the differences between the two objects.


A hierarchical structure representing the differences between two JSON objects.
A configurable class that can produce a diff of two JSON Strings.

Exceptions / Errors

An exception that is thrown when two JSON Strings did not pass a basic sanity test.