Last active
April 15, 2016 04:47
-
-
Save Hemant-Mann/a6253bae9403fc1d207bb6f45066e864 to your computer and use it in GitHub Desktop.
Very Simple script to parse json file
This file contains 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
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