Sample JSON:
"employees":[
{"firstName":"John", "lastName":"Doe", "address ": "India "},
{"firstName":"Anna", "lastName":"Smith", "address ": "Europe "},
{"firstName":"Peter","lastName":"Jones", "address ": " Canada "},
{"firstName":"hem", "lastName":"fik", "address ": " Europe "},
{"firstName":"kin", "lastName":"ress", "address ": " India "},
{"firstName":"jack","lastName":"pink", "address ": "Canada "}
]
I want to split above json array into multiple arrays according to address field.I mean one JSON array contains employees having address is "India",another having next and so on.