Skip to main content
3 of 4
deleted 5 characters in body
jesse_b
  • 41.6k
  • 14
  • 108
  • 163

How to find value of key-value in json in bash script

I'm trying to write a bash script with make s curl call and get a json document back. The json document has a key called access_token and I need to extract the value of this field. This is my json document

echo $json {"access_token":"kjdshfsd", "key2":"value"} 

I don't have jq installed.

HHH
  • 317
  • 1
  • 2
  • 5