Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 524

jq: How to output quotes on raw output on Windows

$
0
0

Using raw output, I have to quote some values of the output.

For example,

echo [{"a" : "b"}] | jq-win64.exe --raw-output ".[] | \"Result is: \" + .a + \".\""

generates

Result is: b.

but how can I generate the following?

Result is: "b".

Unfortunately, it has to run on Windows, called from inside a CMD file.


Viewing all articles
Browse latest Browse all 524

Trending Articles