This is the dictionary that I have given for the json.dumps in my views.py
{1: {'status': u'up', 'count': 8}, 2: {'status': u'down', 'count': 12}}
I have to use this in my javascript. I have tried the following way but not working for me.
var mydata = json.loads({{indexdata}});
can anyone please help me with this?
jsonmodule; that's Python code only.var mydata = {{indexdata}};?