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

Create JSON file using jq

$
0
0

I'm trying to create a JSON file by executing the following command:

jq --arg greeting world '{"hello":"$greeting"}'> file.json

This command stuck without any input. While

jq -n --arg greeting world '{"hello":"$greeting"}'> file.json

doesn't parse correctly. I'm just wondering is really possible to create a JSON file.


Viewing all articles
Browse latest Browse all 657

Trending Articles



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