我得到這樣的迴應:訪問JSON數組內的另一個JSON數組
{
"status": "Success",
"data": [{
"careTypeId": "10",
"careTypeName": "Vacation Care",
"daysOfinterest": ["Monday", "Tuesday"],
"childDaysOfInterestId": "212"
}, {
"careTypeId": "10",
"careTypeName": "Vacation Care",
"daysOfinterest": ["Monday", "Tuesday", "Thursday"],
"childDaysOfInterestId": "202"
}],
"message": "ChildDaysOf Interest"
}
在這種反應我需要訪問的數據陣列,並從我需要得到daysOfInterest
陣列。
它看起來像一個字符串數組,而不是json數組。向我們展示你的模型班。 – SripadRaj