read list from json python code example
Example 1: json.dumps python
example={
"Playlists": [
"Default"
],
"Default": [
"Resources\\Media\\C.mp3",
"Resources\\Media\\K.mp3"
]
}
import json
json_file_path=input('Enter the path: ')
with open(json_file_path,'w') as hand:
json.dumps(example,hand,indent=4)
'''# dict,file_pointer,indentation'''
Example 2: Json in python
{
"Icons":{
"app icon": "your icon.ico",
"eg icon": "eg.ico"
}
}