sorry for simplicity, but I am new to bash.
I am curling a link that returns me json file:
$output=$(curl localhost:9000/user/1)
This returns me:
{"userId":"1", "username":"sam"}
How can echo username sam
?
These didn't work:
echo $output.userId
echo $output["userId"]