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

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


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

jq -r '.name' <json.txt