Also, JSONLint points thats the keys "value", "name" should be inside quotes, but if I use them, the scripts has an error on this line :
var str = data[num].value;
my json source in this case look like this when queried (names changed)
{ "items" :[ {"value":"692","name":"Ragdfma ACDFID"}, {"value":"686","name":"Altreine AKKJVRAM"}, {"value":"428","name":"Tfadftc ARALKMA"}, {"value":"2100","name":"Ikrazdme BOUPOFRA"}] }
Also, JSONLint points thats the keys "value", "name" should be inside quotes, but if I use them, the scripts has an error on this line : var str = data[num].value;
my json source in this case look like this when queried (names changed) { "items" :[ {"value":"692","name":"Ragdfma ACDFID"}, {"value":"686","name":"Altreine AKKJVRAM"}, {"value":"428","name":"Tfadftc ARALKMA"}, {"value":"2100","name":"Ikrazdme BOUPOFRA"}] }