pra*_*n64 4 google-app-engine json app-engine-ndb
我有一个属性,我将其存储为JSON对象,如下所示:
content = ndb.JsonProperty()
Run Code Online (Sandbox Code Playgroud)
当我这样做时,我收到此错误:
line 1614, in _to_base_type
return json.dumps(value, 2)
AttributeError: 'module' object has no attribute 'dumps'
Run Code Online (Sandbox Code Playgroud)
在ndb模型类中.
因为ndb.TextProperty它工作正常.也许我发送JSON错误,这是我发送的JSON对象:
{posttext: "What is your earliest memory of WWII?", linkdata: ""}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1027 次 |
| 最近记录: |