Here's a sample of the JSON string :
{
"table": {
"tfoot": "Footer",
"tr0": [
{
"form": "formData",
"td": "Content"
}
]
}
}
And the jQuery code I'm using to parse it :
$.ajax({
type: 'GET',
url: source,
dataType: 'json',
success: function (data) {
$.each(data, function() {
$.each(this, function(key, value) {
switch (key) {
case "tfoot":
alert(value) // access to this node works fine
break;
default:
alert(value.td) // this is undefined
break;
}
});
});
}
});
I tried a Console.log with Chrome and I can see every nodes and the data is okay. Anyone have a clue how I can access the "form" or "td" nodes?