Hello, is there a way to do JsonDiff (needed for PATCH request) as in library for example https://github.com/beyondeye/kjsonpatch (still mostly in Java). So method with two JSON elements and return value is one JSON element? Or the 3rd party library is the only option. Thanks.
n
Nikky
12/03/2021, 1:33 PM
it does not seem impossible to port the library or write from scratch
but you will end up with another 3rd part library... on top of serialization though
from what i can see you need to diff 2 json elements (objects) and generate the json patch instructions to go from one to the other
those algorithms should already exist, in the library you linked
m
Michal Havryluk
12/03/2021, 4:35 PM
Okay, thanks, working on it.
v
Vasyl Tretiakov
12/06/2023, 4:42 PM
Could you please share what you ended up with for the JSON Diff challenge?