[
{
"orderDetails": [
{
"account_name": "akhil_kotak",
}
]
}
]
How to get the account name from this json, i tried doing this
String response = new String(responseBody);
//ON SUCCESS GETS JSON Object
JSONArray array = new JSONArray(response);
JSONObject obj =
array.getJSONObject(0).getJSONArray("orderDetails").getJSONObject(0);
txt_accountName.setText(obj.getString("account_name"));
If anyone can help, that would be awesome.
Thanks