How can I read a JSON variable in shell script ( to be noted "JSON variable " and not JSON File)? I have tried something like,
temp={\"name\":\"Sipdy\",\"time\":\"17:09 1985\",\"place\":\"CA\"}
jq '.time' $temp
and also tried
temp={"name":"Sipdy","time":"17:09 1985","place":"CA"}
jq '.time' $temp
but both the above commands expect a JSON file name in place of "$temp".