I have an array like
vendors = [{ Name: \'Magenic\', ID: \'ABC\' }, { Name: \'Microsoft\', ID: \'DEF\' } // and so on... ];
if you're using jquery you can take advantage of grep to create array with all matching objects:
var results = $.grep(vendors, function (e) { return e.Name == "Magenic"; });
and then use the results array:
for (var i=0, l=results.length; i<l; i++) { console.log(results[i].ID); }