Reputation: 101
When I try to use with below
Message: Data.json,
it returns error said the message is only be string.
Does anyone has suggestion on this?
Upvotes: 0
Views: 953
Reputation: 270254
You can convert a Python object (Data
) to a JSON-formatted string with:
Message: json.dumps(Data)
The program will also need to use: import json
Upvotes: 1