Turns out that Flask sets request.data to an empty string if the content type of the request is application/x-www-form-urlencoded. Since I\'m using
request.data
application/x-www-form-urlencoded
try this:
f = request.form output = [] user_data = {} user_data['email'] = f['email'] user_data['password'] = f['password'] user_data['key'] = f['key'] output.append(user_data)