I have two large nested json objects
which I need to compare for equality.
I followed the following steps but failed.
I converted the json objects into treemaps and json arrays into hashsets and finally returned a treemap for each.
I used equals method of map to compare for equality.
Though both the maps are sorted(treemaps) and exactly equal in key,value pairs,the comparision is resulting in not equal Can anyone suggest a good solution for this and the reason why the case is failing?