Strip out specific set of characters from Curl output in Shell [duplicate]

So I have an api call that can output something such as this

{"access_token":"eyJjdHkiO_bxYJOOn28y5HGtGHgJzHVCE8zfy1qRBf_rhchA","token_type":"bearer","expires_in":900}

If I wanted to take that output and pull out just the content within the second set of quotes (the token), and put it into a variable for use in the script, what would be the easiest method of doing this?



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Network Error and Timeout on Authorize.net JS

Spring Elasticsearch Operations