How to remove double-quotes in jq output for parsing json files in bash?

Use the -r (or --raw-output) option to emit raw strings as output:

jq -r '.name' <json.txt

Leave a Comment