How to fix the “Invalid JSON payload received. Unknown name” error
问题 I try to get a proper response from the Google Safe Browsing API v4. Although I get the error "Invalid JSON payload received. Unknown name". I have used a payload based on the payload example mentioned at https://developers.google.com/safe-browsing/v4/lookup-api I have problems with the payload. I think it should be a string, not a real dict. When I use a dict I get the error: TypeError: has type , but expected one of: str, unicode The code I used is: result = urlfetch.fetch(url, method