Parsing values from a JSON

Parsing values from a JSON file using Python.


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

import json
from pprint import pprint

with open('data.json') as data_file:
data = json.load(data_file)

pprint(data)

data["maps"][0]["id"]
data["masks"]["id"]
data["om_points"]