Hello,
Im trying to parse bearer-token from response body, although body doesnt have any variable, which i can grab. Just bare text ( on pic)
I’ve already tried: var jsonData = JSON.parse(responseBody)
postman.setEnvironmentVariable(“authtoken”, jsonData.token);
but it does not work. Asking for help to parse this bare text and then set it as variable in env