I have JSON collection object like this
"Sections":[
{"SectionName":"Dallas", ...},
{"SectionName":"Austin", ...},
{"SectionName":"Housto", ...}
]
If I want search for string "Austin" - how can I search directly without looping?
I am doing this but it is not straight.
if (sections.length > 0) {
$.each(sections, function(myObject) {
var sectionObject = sections[myObject];
if (Object.keys(sectionObject).length > 0 && sectionObject["SectionName"] != undefined) {
...
}
});