How can I retrieve the individual fields/values in an object contained within the response from a POST request?
Within my variable headerObj
I have the following contents printed exactly like this...
OAuth oauth_consumer_key="hrhoMzRwz8iJL",oauth_nonce="98bd41c6a18eb06317df73ec",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1423744958",oauth_version="1.0",oauth_signature="wO2nE%2B6RQluNVxiezv00iI%3D"
I have accessed this data in the following way but i need to pluck out specific fields as I dont need all of them.
var x = JSON.stringify(response)
var y = JSON.parse(x)
headerObj = y.request.headers.Authorization
console.log(typeof(headerObj)) // string