Python provides json module to parse JSON files. import json from pprint import pprint with open('data.json') as json_file: data = json.load(json_file) pprint(data)
Here i am using pprint to print result data (You can have a look http://docs.python.org/2/library/pprint.html ) Or You can also use simplejson library to do same . ( http://simplejson.readthedocs.org/en/latest/ ) On Fri, Mar 21, 2014 at 2:08 PM, Noufal Ibrahim KV <nou...@nibrahim.net.in>wrote: > On Fri, Mar 21 2014, lokesh bobby wrote: > > > Hi ALL, > > > > Can you share your thoughts on how to parse a JSON file by using > > python? > > import json > > with open("data.json") as f: > json.load(f) > > > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Prashant Gaur Mobile : +91 9717353657 http://gaurprashant.blogspot.in/ http://stackoverflow.com/users/1850358/prashant-gaur http://www.about.me/prashantgaur/ _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers