@jessleen82 Are you trying to print like this console.log(responseJSON.date)?
In javascript, you cannot access properties which have a dash in them using this syntax.
You’ll have to do something like this to access that property:
let sampleResponseJSON = {
"headers": {
"date": [
"Thu, 25 Oct 2018 19:46:37 GMT"
],
"content-type": [
"application/json"
]
}
}
console.log(sampleResponseJSON.headers['content-type']);
// Prints - ["application/json"]