How to retrieve data from an object in a simple way?
<p>I have an object, which contains 2 name parameters - see the example below. I understand that to reach the data I need to loop through the object, but I feel this is too annoying. Is there a better way to get the data in simple way?</p>

<pre><code>var obj = {[[[{name:'one'},{name:'two'}]]]};

$.each(obj,function(i,val){
    var first = [] // i will get first time
    $.each(first, function(i, val){
        var second = [] //i will get second time and third later fourth  // like so?
    })
})
</code></pre>

<p>Does this mean that I should loop the <code>each</code> function four times to get the <code>name</code> values? If so which is the right way to get that? Is there any way to use the same function to get the data?</p>
