Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
give output below:my $perl = JSON::XS::decode_json $json; print Dumper @$perl{'issues'};
But I want to get the values for:$VAR1 = [ { 'fields' => { 'customfield_22181' => 'Jira Testing', 'customfield_11150' => { 'value' => 'Yes', 'self' => 'https://example.net/rest/api/2/customFieldOption/1 +1347', 'id' => '11347' }, 'status' => { 'statusCategory' => { 'colorName' => 'yellow', 'name' => 'In Progress', 'self' => 'https://example.net/rest/api/2/statuscategory/4', 'id' => 4, 'key' => 'indeterminate' }, 'name' => 'ProdStaged', 'iconUrl' => 'https://example.net/images/icons/statuses/generi +c.png', 'self' => 'https://example.net/rest/api/2/status/10034', 'id' => '10034', 'description' => '' }, 'customfield_22380' => '2016-02-20', 'customfield_11179' => '2015-12-11', 'customfield_11780' => [ { 'value' => 'Sunday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12841', 'id' => '12841' }, { 'value' => 'Monday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12842', 'id' => '12842' }, { 'value' => 'Tuesday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12843', 'id' => '12843' }, { 'value' => 'Wednesday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12844', 'id' => '12844' }, { 'value' => 'Thursday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12845', 'id' => '12845' }, { 'value' => 'Friday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12846', 'id' => '12846' }, { 'value' => 'Saturday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12847', 'id' => '12847' } ], 'issuetype' => { 'name' => 'Auto Testing', 'iconUrl' => 'https://example.net/secure/viewavatar?size=xsmall +&avatarId=26414&avatarType=issuetype', 'self' => 'https://example.net/rest/api/2/issuetype/10100', 'id' => '10100', 'subtask' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ), 'description' => '', 'avatarId' => 26414 }, 'summary' => ' JIRA testing Summary', 'updated' => '2016-01-06T14:15:14.000-0500' }, 'expand' => 'operations,versionedRepresentations,editmeta,changelog, +transitions,renderedFields', 'self' => 'https://example.net/rest/api/2/issue/569825', 'id' => '569825', 'key' => 'TEST-10756' } ];
customfield_22181 as 'Jira Testing' customfield_11150{'value'} as 'Yes' status-{'name'} as 'ProdStaged' customfield_11780{'value'} as "'Sunday', 'Monday',...,'Saturday'"u key as 'TEST-10756' + other customfields
Please advise.
Thanks
Code tags added by GrandFather
|
|---|