I'm using python to create a json string such as:
jsonData = '{id: "idStr", name: "nameStr"}'
prs = json.loads(json.dumps(jsonData))
I then use flask to render my html template and pass in the prs variable as the value to create my data table. However, I need the quotations around idStr and nameStr to remain quotation marks. Instead they convert to #&34; in my html file. I was just wondering if there was a simple method to accomplish this or if I am just going at it the incorrect way.
The reason why I need the quotes for the values is because I'm using AnyChart to create a Gantt Chart visualization.
Output:
data = [{id: #&34;idStr#&34;, name: #&34;nameStr#&34;}]