I am having problems with Python (Django) Framework. I at first attempted to send a Javascript Array straight to Django except it pulled only the last value. So I use now JSON.stringify which sends my JSON to Python.
At Python it looks like this
QueryDict: {u'[{"key:":"interface.dns","value:":192.168.0.1"}]':[u'']}
And if I add more values it just adds to the first U. How can I make this so its a loop.
e.g for each key value in the dictionary display it. Because it seams the JSON is being stored at position one in the Dictionary.
Any Ideas
QueryDictobjects implement the file interface. So you could decode the JSON simply with the standard JSON library: