Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1.     with open(filename, 'rb') as infile:
  2.         myjson = json.load(infile)
  3.         for x in all['names'][0]['verbs']:
  4.             x['first-person'] = x['id']
  5.  
  6.     with open(outfilename, 'wb') as outfile:
  7.         json.dump(myjson, outfile, indent=4, sort_keys=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement