I have flask variable called 'gene_info' which is json object and I want to access one index in json for example 'gene_info['AMPH']'. 'AMPH' is a variable value in JavaScript. So how can I do this?
var symbol = 'AMPH';
var td_name = '{{ gene_info[' $symbol '] | tojson }}';
console.log(td_name);