I have a text box in which the user enters some strings delimited by comma, and these strings will be split on the front end, and sent to the backend to get some data in the form of JSON.
Here's the catch, when I actually typed the key of the JSON like below, it works.
var price = fun.results.KO;
list_of_key = ["KO", "OK", "NA"]
You have to use  notation for it to work like that.