Below is what I have as JSON String.
{
"ID_A0001":{"areaID":"A0001","shopID":"SH004","quantity":14},
"ROW_INFO":{"areaID":"VARCHAR","shopID":"VARCHAR","quantity":"INT"},
"ID_A0002":{"areaID":"A0002","shopID":"SH008","quantity":18}
}
What I want is to get the JSONObject which have ID as ID_A i.e. ID_A0001 & ID_A0002.
I was thinking of using jsonObject.getString("ID_A"), but that is not possible. Could someone tell me what should I do so that I will get as below output.
{
"ID_A0001":{"areaID":"A0001","shopID":"SH004","quantity":14},
"ID_A0002":{"areaID":"A0002","shopID":"SH008","quantity":18}
}