2

From self.request.body I have

changes%5B0%5D%5B%5D=1&changes%5B0%5D%5B%5D=query&changes%5B0%5D%5B%5D=first&changes%5B0%5D%5B%5D=second

I know %5B = "[" og %5D = "]", so the string is

changes[0][]=1 & changes[0][]=query & changes[0][]=first & changes[0][]=second

With self.request.POST I get

<QueryDict: {u'changes[0][]': [u'1', u'query', u'first', u'second']}>

How can I use these values? I need to store the values '1', 'query', 'first', and 'second'.

I've tried json.loads(self.request.body) which results in error ValueError: No JSON object could be decoded.

4

0 回答 0