I need to get the index of the json object in an array whose by the objects id
here is the example code
var list = [ { _id: \'4dd822c5e8a6c42aa7000
You can try Array.prototype.map, based on your example it will be:
Array.prototype.map
var index = list.map(function(e) { return e._id; }).indexOf('4dd822c5e8a6c42aa70000ad');
Array.prototype.map is not available on IE7 or IE8. ES5 Compatibility