Skip to content

Instantly share code, notes, and snippets.

@prabeesh
Created May 29, 2016 07:11
Show Gist options
  • Save prabeesh/a23eb63c25630292ec6779b46cab22f0 to your computer and use it in GitHub Desktop.
Save prabeesh/a23eb63c25630292ec6779b46cab22f0 to your computer and use it in GitHub Desktop.
To create new line delimited JSON from list of dict in Python3.
# creating new line delimited json
fd = StringIO()
for row in rows:
json.dump(row, fd)
fd.write('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment