I am working with a data object that looks like this:
var elements = {
'element' : {
'name' : 'test',
'price' : '55'
},
'element' : {
'name' : 'letev',
'price': '223'
}
};
However, I am struggling to figure out how to find each element by name. For example, I need to find the element with the name "test" and then access its other parameters such as price.