Hello I have an array in javascript with 3 objects in it each object has multiple sub objects and every sub object has a key and value obviously.
I am trying to loop out the subobject id of a certain key let's say for example 4 where the value is true.
What my array looks like:
I've tried this method: (result is the result of my ajax call it works)
for(var land in result.landen){
    $.each(land, function() {
        $.each(this, function(key, value) {
            console.log(key + value);
        });
    });
}
I get this error:
Uncaught TypeError: Cannot use 'in' operator to search for 'length' in 8
 
     
    