{ "data": [ { "id": "1", "title": "Farhan Shah", "duration": 10, }, { "id": "2", "title": "Noman Shah", "duration": 10, }, { "id": "3", "title": "Ahmad Shah", "duration": 10, }, { "id": "4", "title": "Mohsin Shah", "duration": 10, }, { "id": "5", "title": "Haris Shah", "duration": 10, } ] }
This JSON is invalid "duration": 10,
there is an extra comma at the end. Remove that comma and try.
Remove that comma from every object. The modified JSON will look like this.
{
"data": [
{
"id": "1",
"title": "Farhan Shah",
"duration": 10
},
{
"id": "2",
"title": "Noman Shah",
"duration": 10
},
{
"id": "3",
"title": "Ahmad Shah",
"duration": 10
},
{
"id": "4",
"title": "Mohsin Shah",
"duration": 10
},
{
"id": "5",
"title": "Haris Shah",
"duration": 10
}
]
}