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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -