UNPKG

json-diff-rfc6902

Version:

This framework is to compare two JSON data and generate the Patch

73 lines 638 B
{ "0": { "f1": [ "a", "d" ], "f2": [ 1, 4 ] }, "1": { "f1": [ "b", "c" ], "f2": [ 2, 3 ] }, "2": { "f1": [ "c", "a" ], "f2": [ 3, 1 ] }, "3": { "f1": [ "d", "f" ], "f2": [ 4, 6 ] }, "4": { "f1": [ "e", "m" ], "f2": [ 5, 3 ] }, "5": { "f1": [ "f", "c" ], "f2": [ 6, 3 ] }, "6": { "f1": [ "g", "h" ], "f2": [ 7, 5 ] }, "_t": "a" }