The information retrieved from the PHP page appears as follows:
[{
"id": "1",
"name": null,
"startdate": "2012-07-20",
"starttime": "09:53:02",
"enddate": "2012-07-20",
"endtime": "09:54:10",
"duration": "01:00:00",
"feedbacks": [{
"id": "1",
"type": "1",
"content": "cont"
}],
"conditions": [{
"id": "1",
"dev_id": "1",
"mod_id": "2",
"sub_id": "3",
"to_be_compared_value": "1",
"comparison_type": "1"
}],
"actions": [{
"id": "1",
"dev_id": "1",
"mod_id": "1",
"sub_id": "1",
"target_action": "1"
}]
}]
What is the most effective and elegant way to navigate through this object? I have been using these two methods so far. Can you suggest which one would be better for my situation, or provide an alternative? And why? I am currently reviewing my code in the working version of my application and seeking advice from all of you.
Thank you in advance,
Methods used previously:
$.map
for(var i in obj)
One last thing, I will be creating a table based on this data.