168
rated 0 times
[
171]
[
3]
/ answers: 1 / hits: 67889
/ 15 Years ago, thu, june 4, 2009, 12:00:00
I am receiving the next JSON response
{
timetables:[
{id:87,content:B,language:English,code:en},
{id:87,content:a,language:Castellano,code:es}],
id:6,
address:C/Maestro José
}
I would like to achieve the next pseudo code functionality
for(var i in json) {
if(json[i] is Array) {
// Iterate the array and do stuff
} else {
// Do another thing
}
}
Any idea?
More From » json