pyStruct = [{'key1': 'value1', 'key2': 'value2', 'key3': [{'subkey1':
    'subvalue1', 'subkey2': 'subvalue2'}]}, {'key1': 'value1', 'key2':
    'value2', 'key3': [{'subkey1': 'subvalue1', 'subkey2': 'subvalue2'}]}]
Jinja2: How to create multidimensional javascript array?