the end result file looks like this
cat fields.json
{"myField1": {"id": "customfield_10600"}, "myField2": {"id":
"customfield_11334"}, "myField3": {"id": "customfield_993434"}, etc etc
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, November 18, 2016 at 1:23:18 PM UTC-5, mike@gmail.com wrote:
> hi all,
>
> Im reading in a JSON file that looks like this
>
>
> [
>{
> "name":"myField1",
> "searchable":true,
> "navigable":true,
> "custom":true,
> "clauseNames":[
>
mike.rei...@gmail.com wrote:
> 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"
> ],
On 2016-11-18 18:23, mike.rei...@gmail.com wrote:
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"
],
"orde
In John Gordon writes:
> In
> mike.rei...@gmail.com writes:
> with open("json.dat", "r") as fp:
> data = json.load(fp)
> for item in data:
> if item['name'] == 'myField2':
Oops, that should be 'myField1' of course.
--
John Gordon A is for A
In
mike.rei...@gmail.com writes:
> Im reading in a JSON file that looks like this
> ... snip ...
> 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.
That data looks
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",