python parsing file json

Posted by michele on Stack Overflow See other posts from Stack Overflow or by michele
Published on 2010-05-14T15:54:20Z Indexed on 2010/05/14 16:04 UTC
Read the original article Hit count: 446

Filed under:
|
|

File json: {"maps":[{"id":"blabla","iscategorical":"0"},{"id":"blabla","iscategorical":"0"}], "masks":["id":"valore"], "om_points":"value", "parameters":["id":"valore"] }

I write this script but it only print all the text. json_data=open(file_directory).read()

data = json.loads(json_data) pprint(data)

How can I parse the file and extract single values?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about python

Related posts about JSON