Last active
March 18, 2021 05:17
-
-
Save Dagimal/2a179d09efdcd1ecc31b37a80bf98c30 to your computer and use it in GitHub Desktop.
untuk extract value pada file json
This file contains hidden or 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
| # JSON EXTRACTOR | |
| ## Untuk mengambil value dari json, contohnya client_email | |
| ## Pastikan tidak ada file yang kosong | |
| import json | |
| for file in range(10): | |
| with open("key_" + str(file) + ".json") as json_file: | |
| json_data = json.load(json_file) | |
| print(json_data['client_email']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment