[Answered ]-JQuery, AJAX post Javascript array with JSON

1๐Ÿ‘

โœ…

I donโ€™t know anything about Django, so, this a total guess ๐Ÿ˜€

import json
...
value = json.load(request.POST['user_list'])
๐Ÿ‘คuser1636522

1๐Ÿ‘

I might be completely wrong here, but it seems to me that you are trying to decode a wrong thing. If Iโ€™m not mistaken, you request.body looks like this:

user_list=["42"]

and if you try to decode this, you have a problem. So why donโ€™t you decode the value from variable value?

user_list = json.loads(value) 
๐Ÿ‘คhgazibara

Leave a comment