I need to pass a JSON object from the back end of my flask application to be used by the client. Unfortunately, in the browser, it is not being recognised as a JSON object as the quotemarks get encoded differently.
I use json.dumps()
in python and then pass this into the browser using render_template()
. However, once this is passed to the browser, the object appears as so:
{"0": {"word_id": 5, "body": "man", "UWL_id": 5, "sentences":