title: How can i use JSON stringify in Angular?
body: <p>i'm newbie to Angular. I'm trying to get Json data which written like that :</p>
  
  <pre><code>id:1,
  name: "Friends",
  type: "Group",
  </code></pre>
  
  <p>Now, i know i can't use this kind of data unless i add double quotes - like that (it's the only way it is working):</p>
  
  <pre><code>"id":1,
  "name": "Friends",
  "type": "Group",
  </code></pre>
  
  <p>What is the best way to parse JSON in Angular?</p>
  
  <p>I've tried to combine JS , but it didn't work :</p>
  
  <pre><code>app.controller('contacts', function ($scope,$http,$log) {
  
      $http.get('http://localhost/Angular-Http-exercise/db.json')
          .then(function(response) {
              $scope.myData = function() {
  
              return JSON.stringify(response.data)
          };
  
          $log.info(response.data.name);
      });
  });
  </code></pre>