I was told that the reason I had to loop through JSON data is because JSON is an array. If that is true my question is why do you have to loop through JSON data in order to retrieve JSON Values? If that is not true is there another way to retrieve JSON data using jQuery? I added jQuery to my tag words because I would like to retrieve JSON data via jQuery. My JSON data is below:
[
{
"input":0,
"candidate":0,
"delivery":"one",
"last":"two",
"point":"none",
"fruit":{
"apples":"yes",
"oranges":"no",
"grapes":"yes",
},
"analysis":{
"code":"Y",
"crr":"TTB",
}
}
]