Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import json
  2. json_file = "file.json"
  3. with open(json_file, 'r') as read_file:
  4. data = json.load(read_file)
  5. with open(json_file+'l', 'w') as write_file:
  6. for entry in data:
  7. json.dump(entry, write_file)
  8. write_file.write('\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement