【发布时间】:2012-04-18 15:08:00
【问题描述】:
我有一个属性存储为 JSON 对象,如下所示:
content = ndb.JsonProperty()
当我这样做时,我得到了这个错误:
line 1614, in _to_base_type
return json.dumps(value, 2)
AttributeError: 'module' object has no attribute 'dumps'
在 ndb 模型类中。
作为ndb.TextProperty,它可以正常工作。也许我发送的 JSON 错误,这是我发送的 JSON 对象:
{posttext: "What is your earliest memory of WWII?", linkdata: ""}
【问题讨论】:
标签: json google-app-engine app-engine-ndb