jq
Get value without quotes
By default all output strings from jq will be surrounded by double quotes ""
.
Add the -r
or --raw-output
flag to emit raw strings as output.
$ echo '{"id":"abc"}' | jq -r '.id'
By default all output strings from jq will be surrounded by double quotes ""
.
Add the -r
or --raw-output
flag to emit raw strings as output.
$ echo '{"id":"abc"}' | jq -r '.id'