import json


def readJson(filename):
    with open(filename) as f:
        return json.load(f)



if __name__=='__main__':
    print readJson("emp.json")['muthu']
    mydict={}
    mydict['tel']='9393'
    mydict['name']='ram'

    for k in mydict.keys():
        print "Key",k, " - values" , mydict[k]

    print mydict
    for d in readJson("emp.json")['muthu']:
        print d['name']
    # print readJson("json2.json")[1]

    # array = '{"drinks": ["coffee", "tea", "water"]}'
    # data = json.loads(array)
    #
    # for element in data['drinks']:
    #     print "Elt -> " ,element
