我得到的數組的形式這樣字符串轉換爲從JSON響應
["Monday","Wednesday","Friday"]
JSON響應,但它不保存在Android的一個數組中的Android陣,我存儲在像這樣的字符串
String daysOfInterest = map.get("daysOfinterest");
[{"careTypeId":"10","careTypeName":"Vacation Care","daysOfinterest":["Tuesday","Thursday","Saturday"],"childDaysOfInterestId":"424"},
{"careTypeId":"10","careTypeName":"Vacation Care","daysOfinterest":["Monday","Wednesday","Friday"],"childDaysOfInterestId":"425"}]
這是我的反應,我認爲存儲在daysofInterest HashMap中......並使用HashMap的
越來越但是我想,在一個陣列形式
什麼是確切的響應,你如何試圖將其存儲在數組中?發佈您嘗試的代碼。 –
[{「careTypeId」:「10」,「careTypeName」:「Vacation Care」,「daysOfinterest」:[「Tuesday」,「Thursday」,「Saturday」],「childDaysOfInterestId」:「424」},{「careTypeId 「:」10「,」careTypeName「:」Vacation Care「,」daysOfinterest「:[」Monday「,」Wednesday「,」Friday「],」childDaysOfInterestId「:」425「}]這是我的迴應,那天daysofInterest在hashmap中......並且正在使用hashmap – ajay110125