I have a angular app that sends json data to a django backend. The django app save the json data in to a DB and later pulls it out to send it back to the angular app. I am having trouble getting this whole chain to work right.

Here is where view to pass the json data back to the template.

```
def myview(request, uid):
    formrecord = FormData.objects.get(someid = uid)
    return render(request, 'myview.html', 'formdata':formrecord.data})

```

Here is what formrecord.data looks like before `render()` above gets called:

```
(Pdb) formrecord.data
u'{"user":{"firstName":"Bob","lastName":"Henderson"}}'

```

Here is my template

```
<script>
var mydata ={{ formdata }};
mydata = JSON.parse(mydata);
console.log(mydata);
</script>

```

Here is what gets rendered:

```
var mydata ={&quot;user&quot;:{&quot;firstName&quot;:&quot;Bob&quot;,&quot;lastName&quot;:&quot;Henderson&quot;}};

```

The JSON.parse(mydata) gives me a syntax error on the JS side. How I can get the JS to parse the string correctly into a JS object?