I try to test a view, I receive a json request from the IPad, the format is:
req = {\"custom_decks\": [ { \"deck_name\": \"deck_test\",
You're posting JSON, which is not the same as form-encoded data. You need to get the value of request.body and deserialize it:
request.body
data = json.loads(request.body) custom_decks = data['custom_decks']