Parsing a single-level JSON file
mike.reider at gmail.com
mike.reider at gmail.com
Fri Nov 18 13:23:04 EST 2016
hi all,
Im reading in a JSON file that looks like this
[
{
"name":"myField1",
"searchable":true,
"navigable":true,
"custom":true,
"clauseNames":[
"cf[10190]",
"Log Details"
],
"orderable":true,
"id":"customfield_10190",
"schema":{
"customId":10190,
"type":"string",
"custom":"com.atlassian.jira.plugin.system.customfieldtypes:textarea"
}
},
{
"name":"myField2",
"searchable":true,
"navigable":true,
"custom":true,
"clauseNames":[
"cf[10072]",
"Sellside Onboarding Checklist"
],
"orderable":true,
"id":"customfield_10072",
"schema":{
"items":"option",
"customId":10072,
"type":"array",
"custom":"com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes"
}
}]
Lets say I want to get the ID # of MyField1, how can I parse this with json lib? Theyre all on the same level, not sure how to target it to go to MyField1 and get "id" value.
Thanks
More information about the Python-list
mailing list