I have written a script to retrieve certain value from file.json. It works if I provide the value to jq select, but the ...
-
June 3, 2022
- 0 Comments
I’m using the jq tools (jq-json-processor) in shell script to parse json. I’ve got 2 json files and want to merge them into ...
-
June 2, 2022
- 0 Comments
curl http://testhost.test.com:8080/application/app/version | jq '.version' | jq '....
I can’t seem to get jq to behave “normally” in a shell pipeline. For example: $ curl -s https://api.github.com/users/octocat/repos | jq | cat ...
-
May 26, 2022
- 0 Comments
I’m getting this kind of JSON reply from a curl command:...
Given this input: [ { "Id": "cb94e7a42732b598ad18a8f27454a886c1aa8bbba6167646d8f064cd86191e2b", "Names": [ "condescending_jones", "loving_hoover" ] }, { "Id": "186db739b7509eb0114a09e14bcd16bf637019860d23c4fc20e98cbe068b55aa", "Names":...
I have this Json { "users":...
I have the following json file: { "FOO": { "name": "Donald", "location": "Stockholm" }, "BAR": { "name": "Walt", "location": "Stockholm" }, "BAZ": { ...
-
May 9, 2022
- 0 Comments
I’m using jq to parse a JSON file as shown here. However, the results for string values contain the “double-quotes” as expected, as ...
-
May 6, 2022
- 0 Comments