Skip to content

Instantly share code, notes, and snippets.

@borhan-kazimipour
Created September 6, 2019 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borhan-kazimipour/084b1de6edf9f37ef8dfe2748bbca0ac to your computer and use it in GitHub Desktop.
Save borhan-kazimipour/084b1de6edf9f37ef8dfe2748bbca0ac to your computer and use it in GitHub Desktop.
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