如何使用shell腳本從下面的json數據解析字符串'key'的值?使用Shell腳本解析JSON數據
/Users/local/Documents/testjira:{"expand":"schema","names","startAt":"0","maxResults":"50","total":"2","issues":[{"expand":"operations","editmeta","changelog","transitions","renderedFields","id":"56392","self":"https://website.com/jira/rest/api/latest/issue/50342","key":"SAR-32"},{"expand":"operations","editmeta","changelog","transitions","renderedFields","id":"49799","self":"https://website.com/jira/rest/api/latest/issue/19720","key":"SAR-5"}]}
輸出示例: SAR-32,SAR-5等..
使用合適'json'解析像我使用上述命令['jq'](https://stedolan.github.io/jq/) – Inian