This question and that near duplicate ask tree hashing/signing of JSON. They come with JSON examples that are plausible deviations from the standardized syntax (quoting character omitted or changed, extra comma at end of enumeration). There is no indication that the deviations are intentional.
For the first question, the deviations remains long after I made notice in comment. In my answer I tried to accommodate for deviations, but that makes the already long answer even longer.
What should we do with such apparent errors, with two extremes being:
- Leave the question as is as a matter of principle, even in the absence of indication that the apparent error is intentional.
- Forcefully fix the question in the absence of such indication.
Note: I take for granted that answers have a large latitude, from ignoring the deviation without even mentioning it, to dealing with it explicitly.