title: Returned objects from ionic native - Sim
body: <p>I am trying to fetch the device phone number of the mobile phone on which the ionic app is installed  I am using<br>
   (ionic cordova plugin add <strong>cordova-plugin-sim</strong>)<br>
  I do get an object as response,<br>
    What i need to find is what are the elements of the abject as i need to parse it.<br>
  Code below<br>
  The HTML file  </p>
  
  <pre><code>&lt;ion-content padding&gt;
  &lt;button ion-button full (click)="getDeviceInfo()"&gt;Password Reset&lt;/button&gt;
    &lt;ion-item&gt;
      {{deviceInfo}}
    &lt;/ion-item&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>The typescript file</p>
  
  <pre><code>getDeviceInfo(){
  this.sim.getSimInfo().then((info)=&gt;{
    this.deviceInfo = info;
    console.log(this.deviceInfo);
    alert(this.deviceInfo);
  }, Error=&gt;{
    alert('Could not capture device information!');
  });
  }
  </code></pre>
  
  <p>The response i get is an object
  [Object][Object]<br>
  I tried looking at the log cat in android studio but did not find anything  </p>
  
  <p>How do i parse this?
  Any advise will be great help.<br>
  Thanks in advance</p>