Get the difference between two array using Jsondiff

get the difference between two arrays and use the path to generate new
patched array. also use the patch to revert the array to get the
original one.