-
-
Save ronaldlangeveld/5b7c6ede43e75d8a0c416bd95f63ee5c to your computer and use it in GitHub Desktop.
json xml to text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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