[jq] Write a string without double quotation marks

Created on November 30, 2026

Use -r, short for --raw-output, to write a string as plain text. This example extracts the name field from a JSON object.

echo '{"name":"Taro"}' | jq -r '.name'
Taro

Without the option, jq emits the JSON string "Taro". See raw output for jq strings for an example using a string literal.

jq