Pacific-Design.com

    
Home Index

1. Python

2. JSON

Python / JSON /

Reading JSON

config_file = open(config_filename)
config = json.load(config_file)
config_file.close()

print config['app_id']
print config['app_secret']
print config['access_token']