有没有办法解析JSON而不使用其他依赖项,例如jq。例如,给定时:
{
"id": 1,
"tag_name": "v1.0.0",
"target_commitish": "master",
"name": "v1.0.0",
"body": "Description of the release",
"draft": false,
"prerelease": false,
"created_at": "2013-02-27T19:35:32Z",
"published_at": "2013-02-27T19:35:32Z"
}
如何过滤掉只能在bash中获取name
或body
的内容?
提前致谢