Below is the command that retrieves JSON into a variable:
$ JSON=$(curl http://some-url)
$ echo $JSON
{ "a" : "1", "b" : "2", "c" : "3" }
$
Need to install jq
on docker container. awk
is available
Can be parsed only using jq
, but
How to read the value of "a" & "b" using jq
approach & awk
approach?