Guys can anyone help me to parse the below JSON data:
[
{
"oneMethod": {
"NewData": {
"Table": {
"Column1": "1",
"Column2": "2",
"Column3": "3",
"Column4": "4",
"Column5": "5",
"Column6": "6"
}
}
}
}
]
I am using this:
JSONObject reader = new JSONObject(jsonStr);
JSONObject sys = reader.getJSONObject("Table");
id = sys.getString("Column1");
id2 = sys.getString("Column1");
id3 = sys.getString("Column1");
id4 = sys.getString("Column1");
id5 = sys.getString("Column1");
id6 = sys.getString("Column1");
But it's saying
JSONArray cannot be converted to JSONObject