[Fixed]-Handle json in python post request and response in django

1👍

Use getlist for key2.

key2 = request.POST.getlist('key2', '')

But you might find it easier to send the data as JSON and access json.loads(request.body).

Leave a comment