I have a String. I am converting it to JSONOBJECT and I am trying to extract the values based on the key.
JSON STRING:
jsonString="
{
\"AREA\": [\"IT,SALES\"],
\"CITY\": [\"LA\",\"NORTH\"]
}";
I want the values of "AREA"in one string and CITY in one String. I have tried :
JSONObject jsonOb = new JSONObject("jsonString");
String area = jsonOb.getString("AREA");
But I am not able to retrieve the values in that way. Need some suggestions.