Supposed i have 2 json files and i have 2 JSONObject-s (1 to represent each file) and the files represent the same data but in DIFFERENT ORDER of the blocks in the file.
for example:
file1.json
name: {
entry1
entry3
entry2
}
file2.json
name: {
entry2
entry1
entry3
}
Where entry-i in each file is the same.
How can i perform equals on them even though the order is different ?
Thanks