python - How to convert dynamo items from scan to dict/json? -


i using boto retrieve dynamo items scan.

for item in scan_results:     print item 

i can access each property with:

for item in scan_results:     print item['propa']  item in scan_results:     print json.dumps(item) # not work 

how convert each item json object or dict? want avoid having iterate on keys in item , generating dict through loops if can avoid it.

how this?

for item in scan_results: print json.dumps(dict(item))


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -