JQ: Select multiple conditions
I have a json and at the moment using select to get only the data which match one condition, I need to filter … Read more
I have a json and at the moment using select to get only the data which match one condition, I need to filter … Read more
I have written a script to retrieve certain value from file.json. It works if I provide the value to jq select, but the … Read more
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 … Read more
curl http://testhost.test.com:8080/application/app/version | jq ‘.version’ | jq ‘.[]’ The above command outputs only the values as below: “madireddy@test.com” “2323” “test” “02-03-2014-13:41” “application” How … Read more
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 … Read more
I’m getting this kind of JSON reply from a curl command: [ { “cid”: 49, “pyn”: “yi4”, “hans”: “亿”, “hant”: “億”, “tid”: 68, … Read more
Given this input: [ { “Id”: “cb94e7a42732b598ad18a8f27454a886c1aa8bbba6167646d8f064cd86191e2b”, “Names”: [ “condescending_jones”, “loving_hoover” ] }, { “Id”: “186db739b7509eb0114a09e14bcd16bf637019860d23c4fc20e98cbe068b55aa”, “Names”: [ “foo_data” ] }, { “Id”: … Read more
I have this Json { “users”: [ { “first”: “Stevie”, “last”: “Wonder” }, { “first”: “Michael”, “last”: “Jackson” } ] } Using jq … Read more
I have the following json file: { “FOO”: { “name”: “Donald”, “location”: “Stockholm” }, “BAR”: { “name”: “Walt”, “location”: “Stockholm” }, “BAZ”: { … Read more
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 … Read more