Skip to content

Instantly share code, notes, and snippets.

@sakal
Created May 16, 2012 23:58
Show Gist options
  • Save sakal/2715016 to your computer and use it in GitHub Desktop.
Save sakal/2715016 to your computer and use it in GitHub Desktop.
src = [{"id":1, "value":2}, {"id":3, "value":4}]
tmp_list = []
for item in src:
tmp_list.append({"id": item["id"], "value": item["value"]})
result = tuple(tmp_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment