i have below json which i get from Remote.
{
    "name":"planning Diet",
    "day1":{
        "morning":"chicken",
        "evening":"mutton",
        "night":"Juice"
    },
    "day2":{
        "morning":"burger",
        "evening":"pizza",
        "night":"Juice",
        "late night":"water"
    }
}
Below is what i tried.
$.getJSON("http://domain.com/hello.json",function(result){
  $.each(result, function(i, field)
{
console.log(field);
});
This returns something like
"planning diet"
[object object]
[object object]
Now how can i traverse or loop through all the object... ?
 
     
     
     
     
     
    