[go-nuts] Re: JSON Compare

2023-09-19 Thread Maxime Soulé
Hi, You can have a look at go-testdeep [1] and its JSON [2] operator. go-testddep is tailored for tests, but it provides EqDeeplyError [3] function that can perhaps be useful in your use case. json1 := json.RawMessage(`{"foo":{"a":1}}`) json2 := json.RawMessage(`{"foo":{"b":8}}`) err := td.EqDee

[go-nuts] Re: JSON Compare

2023-09-18 Thread Corin Lawson
What makes you say the existing packages are not maintained? They may simply be complete? On Friday, 15 September 2023 at 5:05:10 am UTC+10 Sapna Jayavel wrote: > I am implementing a method find difference between two JSON objects and it > has to drill down recursively. My usecase has very lar