My JSON object has the following structure :
{ key :
[
{keya1:value1,
keya2:value2,
keya3:[value31,value32...]
keya4:value4
},
{keyb1:value1,
keyb2:value2,
keyb3:[value31,value32...]
keyb4:value4
},
...
..
{keys1:value1,
keys2:value2,
keys3:[value31,value32...]
keys4:value4
}
]
}
I tried using a simple json.parse but it doesnt work. With such a structure how should i go about parsing so that i can safely iterate over each instances of key and display all keya-valuea,keyb-valueb.. pairs for values of key? Many thanks!
EDIT : I actually omitted quotes on purpose. The original JSON data HAS quotes around keys and values.Sorry i didnt mention it earlier.