Skip to content

Instantly share code, notes, and snippets.

@ronaldlangeveld
Created March 12, 2018 21:12
Show Gist options
  • Save ronaldlangeveld/5b7c6ede43e75d8a0c416bd95f63ee5c to your computer and use it in GitHub Desktop.
Save ronaldlangeveld/5b7c6ede43e75d8a0c416bd95f63ee5c to your computer and use it in GitHub Desktop.
json xml to text
import json
import io
mydata = json.load(io.open('library.json', 'r', encoding='utf-8-sig'))
# print(mydata['plist']['dict']['dict']['dict'][1]['string'][0])
a = mydata['plist']['dict']['dict']['dict']
for k in a:
data = k['string']
song = data[0]
artist = data[1]
print(song, ' , ', artist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment