How to iterate over a list of items from Python/Flask using Javascript?

Solution
['ABC', 'DEF', 'GHI', 'JKL']
flask_data = '{{data}}';
temp_array = flask_data.slice(6,-6);
ABC', 'DEF', 'GHI', 'JKL
array = temp_array.split('', '');
['ABC','DEF','GHI','JKL']