After reading up on JSON objects , I am now trying to locate the value associated with a specific KEY, which may be null, no or yes.
The KEY in question is "f03eb90f-6b5e-4b26-bd9f-bad788b7edac" and I want to retrieve its value
You can find the Fiddle here: https://jsfiddle.net/4vse3uw1/
I attempted to create an array, push the data into it, and then run a for loop to search for the desired key:
var arr = [];
arr.push(d)
console.log(arr)
for (props in arr) {
if (arr[props] == "f03eb90f-6b5e-4b26-bd9f-bad788b7edac") {
//doSomething();
console.log(props)
}
}
Following that step, I tried:
for (var i = 0; i < arr.length; i++)
{
console.log(i)
}
The variable 'd' contains several JSON entries with keys and values. Here is a snippet of what's included: