In template_react, use JSON instead of JavaScript object notation
Everything nested in the data object was already JSON,
but the outermost dict keys were specified without quotes,
which is only legal in JavaScript, not in JSON.
This makes it easier to further process the whole object
outside of JavaScript.
<script type="text/javascript">
const data = {
- version: {{version|json}},
- head: {{head|json}},
- tools: {{tools|json}},
- rows: {{rows|json}},
- stats: {{stats|json}},
- props: {{relevant_id_columns|json}}
+ "version": {{version|json}},
+ "head": {{head|json}},
+ "tools": {{tools|json}},
+ "rows": {{rows|json}},
+ "stats": {{stats|json}},
+ "props": {{relevant_id_columns|json}}
};
window.data = data;
