create a new .JSON file with specific values


echo '{}' | jq '.key1|="value1"|.key2|="value2"' >newfile.json

Tags:  json

Share: