Contains json related utilities
JsonSorter : Java based json sorter. Sorts the json alphabetically and recursively, all the maps are sorted by their keys while lists are sorted by their inner contents' json representation. This is very helpful utility to compare multiple jsons which are equal in content but where content order is differnt in different jsons.
For example:
Sample unsorted json:
{
"name": "Sushant",
"address": "pune",
"emails": [
"sravale@pune.com",
"sravale@gmail.com"
],
"phones": {
"home": [
9876543210,
9089787657
],
"office": [
8976543579
]
}
}
Output sorted json:
{
"address": "pune",
"emails": [
"sravale@gmail.com",
"sravale@pune.com"
],
"name": "Sushant",
"phones": {
"home": [
9089787657,
9876543210
],
"office": [
8976543579
]
}
}