SortedMap<String, VehicleData> hmap = new TreeMap<String, VehicleData>();
My JSON String sample:
{
"3": {
"Field1": 12,
"Field2": "value",
"Field3": null
},
"test": {
"Field1": 20,
"Field2": "value",
"Field3": "vit"
}
}
I want to convert this string to HashMap declared above. Is there any method to convert directly from Json string to Hashmap?