title: Convert promise in JSON object
body: <p>I have a problem converting the promise returned by the service to the controller. What I want is to create an array of JSON objects from the data contained in promise. Here is what I receive in the controller:
  <a href="https://i.stack.imgur.com/lbFpI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lbFpI.png" alt="Data received at controller"></a></p>
  
  <p>Here is the line that is used for printing that data:</p>
  
  <pre><code>console.log("controller unmatched: ", unmatched.getData(sFilter));
  </code></pre>
  
  <p>Here "unmatched" is the service, and getData() is its function.</p>
  
  <p>Thanks!</p>