Extracting items out of a QueryDict

django, python

Solution

It seems like your client is posting JSON rather than formencoded data. Instead of accessing `request.POST`, use `request.body` (`request.raw_post_data` in versions 1.3 or less) and use `json.loads()` to convert to a dict.

Problem

I have a querydict that looks like the following: ``` <QueryDict: {u'{"content":"aa","id":"1"}': [u'']}> ``` How would I extract out `id`? I have tried doing `queryDictExample.get("id")`, but it didn't work.

Original source