尝试解决此链接中给出的示例但它给出了错误。 Parsing values from a JSON file?
find . -type f -exec sh -c 'echo {}; git blame {}; echo;' \; > /tmp/git_files.log
{
"maps": [
{
"id": "blabla",
"iscategorical": "0"
},
{
"id": "blabla",
"iscategorical": "0"
}
],
"masks": {
"id": "valore"
},
"om_points": "value",
"parameters": {
"id": "valore"
}
}
import json
from pprint import pprint
data = json.load(open('a.json'))
pprint(data)