我有以下内容:
def jsonify(ar):
json.dumps(ar._data)
jsonify(getFromTable())
getFromTable返回一个boto对象数组。每个对象都有一个数据元素。但是ar.\u数据不起作用。它没有属性\u data。在
如何从多个对象生成一个单独的json。还是不可能?在
我的工作是:
^{pr2}$不过,我还是会优先在一个json blob中打印它们。有人知道怎么做吗?在
在mGilson的帮助下解决了以下问题
同时作为参考:
我使用的是boto、dynamodb2、python,并从查询表返回的lazy evaluation resultSet中提取。在
@mGilson,谢谢。这是解决这个问题的正确方法。在
对于任何好奇的人来说,这里是我使用的实现。在
打印出预期结果:
如果有人想知道我用这个来测试我将如何实现我的实际数据库。在
相关问题 更多 >
编程相关推荐