I\'m trying to get the following to work & it\'s not, help me please:
curl -s \'https://cryptofresh.com/api/asset/markets?asset=MKR\' | jq .OPEN.BTC
When a key contains characters that are invalid for identifiers, you'll have to quote the name.
."OPEN.BTC"
Or for older versions of jq, use an index.
.["OPEN.BTC"]
Another answer didn't work for me but the comment written by @jeff-mercado worked for me. So, adding it as an answer here.
If your key has dots like "OPEN.BTC" then your jq
command should be
curl -s 'https://cryptofresh.com/api/asset/markets?asset=MKR' | jq '."OPEN.BTC"'
Put the key first in double quotes and then escape the first dot by wrapping it using single quotes.