Accessing json file

This commit is contained in:
Kaushal Kumar Agarwal 2018-08-18 10:59:24 +05:30 committed by GitHub
parent f915abf4b6
commit 8872930af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
Loading json file.py Normal file
View File

@ -0,0 +1,5 @@
import json
with open('AppData.json',encoding='utf-8') as F:
json_data=json.loads(F.read())
print(json_data["Dapps"][0]["id"])