I have this JSON in a file:
{
"maps": [
{
"id": "helloworld",
"iscategorical": "0"
},
{
"id": "helloworld",
"iscategorical": "0"
}
],
"masks": [
"id": "valuerr"
],
"om_points": "value",
"parameters": [
"id": "valuerr"
]
}
I wrote this script which prints all of the json text:
json_data=open(file_directory).read()
data = json.loads(json_data)
pprint(data)
How can I parse the file and extract single values?