diffson icon indicating copy to clipboard operation
diffson copied to clipboard

Error in README.markdown

Open mikost opened this issue 2 years ago • 1 comments

version of diffson: 4.1.1

In README.markdown, section "Basic Usage", the result of patch[Try](json1) is shown as:

{
  "d":false,
  "c":"test2",
  "a":6
}

and the text says "... which we can easily verify is the same as json2 modulo reordering of fields".

However, json2 was actually:

{
  "a": 6,
  "c": ["test2", "plop"],
  "d": false
}

which is not the same as the purported patch result (the "c" fields differ).

mikost avatar Oct 11 '23 18:10 mikost

Indeed this needs to be fixed. Thanks for reporting.

satabin avatar Oct 11 '23 19:10 satabin