Created
May 29, 2016 07:11
-
-
Save prabeesh/a23eb63c25630292ec6779b46cab22f0 to your computer and use it in GitHub Desktop.
To create new line delimited JSON from list of dict in Python3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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