I have a simple Websockets server in python, it receives messages from Android app clients, I tried to make the message payload from the client in JSON but I felt. It is only wo
You should use the json Python package. To have a JSON, you could simply do import json and json.dumps(message).
json
import json
json.dumps(message)