JSON下面包含数组中的4个项目。如果您查看每个项目,那么显示的是不完整的键。我无法弄清楚如何在iOS(任何UI设计模式)中表示一致的数据。通过稍微查看以下信息,它们彼此相互关联,例如,父键值信息与公司键值相同,并且在员工中,一个值与名称键值相同。这似乎很典型。
{
"arays": [
{
"company": "Microchip",
"parent": "File",
"employees": [
"John",
"Mike"
]
},
{
"company": "Apple",
"mobiles": [
"111-111-1111",
"121-121-1212"
]
},
{
"company": "File",
"parent": "Apple",
"addresses": [
"2600 space center blvd",
"2700 university dr"
]
},
{
"name": "John",
"mobiles": [
"222-222-2222"
],
"addresses": [
"Time Square, NY"
]
}
]
}