Here i m putting code of my json file..can anyone help me “How to parse this json file?”.I tried a lot of tutorials.I got some hints.But in my json file i dont have array name.so i couldnt use any key value to access those objects.
[
{
id: 1,
name: "Ice Cube",
properties: [
{
propertyMeta: {
name: "Color",
type: 5
},
value: "Venfield"
},
{
propertyMeta: {
name: "Size",
type: 1
},
value: "38"
}
]
},
{
id: 2,
name: "Lite Shirt",
properties: [
{
propertyMeta: {
name: "Color",
type: 5
},
value: "Otto"
},
{
propertyMeta: {
name: "Size",
type: 1
},
value: "42"
}
]
},
{
id: 3,
name: "Holiday Tops",
properties: [
{
propertyMeta: {
name: "Color",
type: 5
},
value: "Van Heusen"
},
{
propertyMeta: {
name: "Size",
type: 1
},
value: "39"
}
]
}
]
If you’re using SBJSON you’d just:
And then loop through it as normal