Although, it ran fine on small data. I need help looping through JSON in this form:
var current_value = 2;
json_data = {"2":"first information","3":"Second informaton","4":"Third information"}
What I want to do is get the value in the json_data that corresponds to current_value of 2 The problem is that I keep getting " anytime I run this loop:
for(x in json_data){
if(x === current_value){
extracted = json_data[current_value];
}
}
"