【发布时间】:2014-07-22 21:25:07
【问题描述】:
我正在为我的第一个 parse.com 应用程序设置数据结构。我来自关系数据背景,所以我不确定在解析中存储数据时我能做什么和不能做什么。 所以我的问题是,我可以将下面的 Json 作为一个对象存储在解析类中,还是必须将其拆分为多个类/对象以用于“fixtures”和“location”字段?
{
"name": "fast five",
"rules": "round robin",
"location": [
{
"long":"18.633456",
"lat":"-33.880178",
"venue":"Velodrome, Cape Town",
"date_time":"2011-08-21T18:02:52.249Z"
}
],
"teams": [
"gauteng west",
"gauteng north"
],
"fixtures": [
{
"teamA":"gauteng west",
"teamB":"gauteng west",
"court":"court 5",
"date_time":"2011-08-21T18:02:52.249Z"
},
{
"teamA":"gauteng west",
"teamB":"gauteng west",
"court":"court 5",
"date_time":"2011-08-21T18:02:52.249Z"
}
]
}
【问题讨论】:
标签: json class object parse-platform