Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open(filename, 'rb') as infile:
- myjson = json.load(infile)
- for x in all['names'][0]['verbs']:
- x['first-person'] = x['id']
- with open(outfilename, 'wb') as outfile:
- json.dump(myjson, outfile, indent=4, sort_keys=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement