Return data from promise

I’m currently trying to read a value from a SOAP call, this value is returned like this:


This is my .ts code:

doLogin() {
      return this.privacyProvider.getPWD()
       .then((data: any) => {
          let res = data[1];
       .catch(err => {
          console.log('Error', err);
          return err;

How can I read the value inside the {}?

I’m getting NaN from this :

let count = parseInt(data[""]);

Solved. Missing ; at the end …:man_facepalming: