I am getting the JSON error response from server in the following way,
let err = {
"_body": "{\"error\":\"264\",\"message\":\"Please enter valid usename/password\",\"object\":null}",
"status": 400,
"ok": false
}
And i want to display the error message on the screen 'Please enter valid usename/password'
I tried in the following way but no luck,
console.log((this.err._body).replace(/\\/g, ''));