title: How to remove $promise and $resolved from json object
body: <p>I'm using $resource in angular to get json object and its structure is defined below</p>
  
  <pre><code>[
      {
          "id": 0,
          "name": "Type1"
      },
      {
          "id": 1,
          "name": "Type 2"
      }
  ]
  </code></pre>
  
  <p>after fetching the data .. console.log(jsonObject) gives me</p>
  
  <pre><code>[Resource, Resource, $promise: Object, $resolved: true]
  </code></pre>
  
  <p>How can I remove  $promise &amp; $resolved from the resulting object ?
  I tried angular.fromJson(json) but still I see that these objects still exist.</p>