本地数据结构

时间:2022-11-20 11:59:47

json是对象

数组在对象里

{
row:[
]
}

多个对象在数组里

row:[
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
},
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
},
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
}
]

多个属性在对象里

{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}