How to make api class where api response start with array ?
Api Response :-
[
{
"reqList": [
{
"_id": "123448478478",
"username": "12345",
"amount": 4100
},
],
"_id": "636e2c5cf0142eed68343335",
"username": "umesh-rajput",
"amount": 95
}
]
2
Answers
We can handle this response as a list of individual JSON objects inside the response array.
This is general Pseudo code.