Skip to content

Instantly share code, notes, and snippets.

@theterg
Created November 19, 2013 16:21
Show Gist options
  • Select an option

  • Save theterg/7547955 to your computer and use it in GitHub Desktop.

Select an option

Save theterg/7547955 to your computer and use it in GitHub Desktop.
Example of reading in json configuration
import json
f = open('devinfo.json','r')
lines = f.readlines()
config = json.loads(lines[0])
print config['data_format']
print config['sensor_settings']['accelerometer']['scale']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment