lua.wetgenes.json_diff.array_match
Given two arrays of json data, return two synced arrays of arrays where as much json data as possible match in each sub batch.
each of these arrays can be concatonated to create the original array.
When stepping thoigh bothe arrays, matches are shown by the sub array having equality and differences will be insertions or deletions depending on which of the two has the empty array.
EG these two lists
[a,b,c,d,e,f]
[a,b,e,f]
would become
[ [a,b] , [c,d] , [e,f] ]
[ [a,b] , [] , [e,f] ]
The two [a,b] arrays will be equal to each other when tested with a simple == compare as they are references to the same table.