我在 JSON 上很糟糕。我一点都不明白。我的 JSON 响应如下所示:
{
ID = 1;
EDate = "<null>";
SelectedDay = "/Date(-62135596800000)/";
End = "14.09.2013 15:00:00";
Start = "14.09.2013 07:00:00";
SDate = "<null>";
},
{
ID = 1;
EDate = "<null>";
SelectedDay = "/Date(-62135596800000)/";
End = "14.09.2013 16:00:00";
Start = "14.09.2013 07:00:00";
SDate = "<null>";
},
在 NSData 和 NSDictionary 中。如何循环槽,例如,每个对象的“结束”属性,并将它们添加到数组中?
编辑:
我从这段代码中登录:
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:result.data options:kNilOptions error:&error];
NSLog(@"Response: %@",dict);
完整的日志是: