Skip to content

Instantly share code, notes, and snippets.

@mmsamiei
Created December 29, 2019 21:20
Show Gist options
  • Save mmsamiei/26bb9701e9b40396f8aa8317b105355b to your computer and use it in GitHub Desktop.
Save mmsamiei/26bb9701e9b40396f8aa8317b105355b to your computer and use it in GitHub Desktop.
import json
freader = open('test_random_split.json')
data = json.load(freader)
with open('correct-sample.json', 'w') as
for entry in data:
json.dump(entry, outfile)
outfile.write('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment