After sending a request to a web server, I received the following response:
The response, when using JSON.stringify
, appears as shown below:
undefined{\"access_token\":\"Rhazjww5 ...QUiTMVc\",\"token_type\":\"bearer\",\"expires_in\":86399,\".issue
d\":\"Thu, 16 Aug 2018 13:50:28 GMT\",\".expires\":\"Fri, 17 Aug 2018 13:50:28 G
MT\"}"
I am trying to retrieve the access_token from the object but I'm unsure how to do so.
I attempted var.access_token
and var['access_token']
, with var
being the variable that contains the object.
Could someone please provide guidance on accessing the data within the object?
Appreciate your help!