title: How I can extract object from JSON result usinig angularJS
body: <p>I use this function de read data from a web service </p>
  
  <pre><code>$scope.getProduitByCatID = function () {
      $http.get("/getProduitByCategorieID?id=" + $scope.categorie.id).success(function (data) {
          $scope.produits = data;
      });
  };
  </code></pre>
  
  <p>the value in my model <code>$scope.produits</code> is : </p>
  
  <pre><code>{
      "reference": 1,
      "designation": "sony",
      "prix": 5100,
      "categorie": {
          "id": 1,
          "nom": "serveur"
      }
  }
  </code></pre>
  
  <p>I want to show this result with an ng-repeat </p>
  
  <pre><code>&lt;tr ng-repeat="p in produits"&gt;
      &lt;td&gt;{{p.reference}}&lt;/td&gt;
      &lt;td&gt;{{p.designation}}&lt;/td&gt;
      &lt;td&gt;{{p.prix}}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>but it's not work 
  I want to extract just this information in my model :</p>
  
  <pre><code>{
      "reference": 1,
      "designation": "sony",
      "prix": 5100
  }
  </code></pre>
  
  <p>because I have two entities <code>product(id,designation,prix)</code> and <code>categorie(id,nom)</code> in association ManytoOne how I can do that using angularJS?</p>