Parse through JSON using only Bash [duplicate]
问题 This question already has answers here : Parsing JSON with Unix tools (36 answers) Closed last year . I have a JSON file : { "request_id": "9a081c0c-9401-7eca-f55d-50e3b7c0301c", "lease_id": "", "renewable": false, "lease_duration": 2764800, "data": { "password": "test123", "username": "testuser1" }, "wrap_info": null, "warnings": null, "auth": null } I am trying to read the values of username and password . Now I was able to integrate bash and python to get what I wanted. # curl --silent -k