Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import json
  2.  
  3. data = {}
  4. data[0] = "Hallo"
  5. data[1] = "test"
  6.  
  7. json_data = json.dumps(data)
  8.  
  9. print(json_data)
  10.  
  11. with open('soundfiles.json', 'w') as outfile:
  12. json.dump(json_data, outfile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement