Created
September 6, 2019 03:32
-
-
Save borhan-kazimipour/084b1de6edf9f37ef8dfe2748bbca0ac to your computer and use it in GitHub Desktop.
This file contains 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
import json | |
json_file = "file.json" | |
with open(json_file, 'r') as read_file: | |
data = json.load(read_file) | |
with open(json_file+'l', 'w') as write_file: | |
for entry in data: | |
json.dump(entry, write_file) | |
write_file.write('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment