For example, if I have the following json texts:
object1{
field1: value1;
field2: value2;
field3: value3;
}
object1{
field1: value1;
field2: newvalue2;
field3: value3;
}
I need something in c# that reads that files and shows the difference. i.e. it can return the following object:
differences {
object1: { field: field2, old_value: value2, new_value: newvalue2}
}
Is there some API or suggestions to do this?
I recommend you use Weakly-Typed JSON Serialization and write a routine that uses JsonObject like this:
Your choice whether to get reports recursively inside
JsonValuev1 and v2, instead of just using their string representation as I did here.If you wanted to go recursive, it might change the above like this:
-Jesse