Skip to content

Instantly share code, notes, and snippets.

@Hemant-Mann
Last active April 15, 2016 04:47
Show Gist options
  • Save Hemant-Mann/a6253bae9403fc1d207bb6f45066e864 to your computer and use it in GitHub Desktop.
Save Hemant-Mann/a6253bae9403fc1d207bb6f45066e864 to your computer and use it in GitHub Desktop.
Very Simple script to parse json file
import json
import sys
from pprint import pprint
jdata = open(sys.argv[1])
data = json.load(jdata)
print data["db_name"]
print data["mysql"]
print data["server_ip"]
print data["server_user"]
print data["server_pass"]
print data["server_path"]
print data["project"]
print data["project_dir"]
jdata.close()
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment