I am using java.
I have pasted below response for reference. I need to loop the below JSON Array response.
I can able to get the full response. But, I need to access the device Type first for example:deviceType=android and then using that device type I need to get the id of that particular device type for example: id=16.
Response: { "BannerConfigurations": [ { "id": 16, "partnerId": 69, "appId": "28470216", "affiliateData": "", "status": true, "deviceType": "ios", "daysHidden": 15, "daysReminder": 30 }, { "id": 161, "partnerId": 69, "appId": "com.android.news", "affiliateData": "", "status": true, "deviceType": "android", "daysHidden": 15, "daysReminder": 30 } ] }
I'm assuming you are starting with the full JSONObject but you can skip the first line if you've for the banner configurations array.