Re: [Tutor] json file

2010-02-13 Thread Kent Johnson
On Sat, Feb 13, 2010 at 3:00 PM, Chris Patillo wrote: > Thanks for your response.  i did some research on json.load() and I don't > understand how you extract the data from it.  How do I get just the name and > number from the file? The value returned from json.load() is a Python dictionary. The

Re: [Tutor] json file

2010-02-13 Thread Kent Johnson
On Sat, Feb 13, 2010 at 7:21 AM, Chris Patillo wrote: > I need to read in a .json file and write out a file with some of the > information from this file.  I can't figure out how to read the .json file > in.  I know there is a module for this, but I don't understand how it works. > > The file I am

[Tutor] json file

2010-02-13 Thread Chris Patillo
I need to read in a .json file and write out a file with some of the information from this file. I can't figure out how to read the .json file in. I know there is a module for this, but I don't understand how it works. The file I am needing to read is like below (except much much larger) {