Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import json
import sys
filename = sys.argv[1]
data = json.load(open(str(filename)))
for i in range(0, len(data)):
treeid = data[i]['TREE_ID']
outfile = open('./output/' + str(treeid) + '.json', 'w')
json.dump(data[i], outfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.