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

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 608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>