JSON对象必须是str,而不是'bytes
我正在尝试向我用 Django Restless 写的API发送PUT请求。我试过用Curl和AngularJS,但总是遇到这个错误:
the JSON object must be str, not 'bytes'
我在OS X上使用Python 3.4。谢谢!
我正在尝试向我用 Django Restless 写的API发送PUT请求。我试过用Curl和AngularJS,但总是遇到这个错误:
the JSON object must be str, not 'bytes'
我在OS X上使用Python 3.4。谢谢!