I'm not sure how to accomplish this following given this array of JSON objects:
var stuff = [
{
'Address' : '123 Street',
'Name' : 'From'
},
{
'Address' : '456 Avenue',
'Name' : 'To'
}
]
So what I would like to be able to do is query this array of objects based on one of the properties, in this case 'Name', and return the entire object that matches the query.
Is there anyway to do this with jquery or just regular javascript?
For example I'd like to return the whole object where Name === 'From'