问题 I'm parsing a JSON response with a tool called jq. The output from jq will give me a list of full names in my command line. I have the variable getNames which contains JSON, for example: { "count": 49, "user": [{ "username": "jamesbrown", "name": "James Brown", "id": 1 }, { "username": "matthewthompson", "name": "Matthew Thompson", "id": 2 }] } I pass this through JQ to filter the json using the following command: echo $getNames | jq -r .user[].name Which gives me a list like this: James