I have following JSON as response from my server. At first, I thought, it was invalid JSON but after validating it, it seems to be correct:
JOSN: {
"category": {
"1": "World",
"2": "Politics",
"3": "Economy",
"4": "Sports",
"5": "Cricket",
"6": "General",
"7": "Business",
"8": "Services",
"9": "Law & Order",
"10": "Entertainment"
}
}
Validation:
If it would have been JSONArray, I would have parsed it with this solution from SO: How to parse a JSON without key in android?
But how do I parse the JSON I have here?
Any help appreciated.