> This doesn't work: > $.getJSON("wheremydatais", function(data){ > $.each(data.items, function(i,item){ > $.each(options, function(key,val){ > if (item.key.indexOf(options.key) != -1) { > console.log('everything ok'); > } > }); > }); > > });
What is "key"? That's not in either one of your data structs.