I'm getting following JSON response: "data" in object:
"status": true,
"data":{
//Some data
}
Sometimes it comes in array as:
"status": true,
"data":[
//Some data
]
How to check data's response dynamically that, is object or array? *I'm using Retrofit
My Retrofit parsing for array as:
@SerializedName("data")
ArrayList<DataDetail> dataList;
Thanks in advance!