Skip to content

Instantly share code, notes, and snippets.

@Dagimal
Last active March 18, 2021 05:17
Show Gist options
  • Select an option

  • Save Dagimal/2a179d09efdcd1ecc31b37a80bf98c30 to your computer and use it in GitHub Desktop.

Select an option

Save Dagimal/2a179d09efdcd1ecc31b37a80bf98c30 to your computer and use it in GitHub Desktop.
untuk extract value pada file json
# 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