title: Get the value from a json object with javascript
body: <p>I'm trying get a specific value from a json object that is returned from a request. But the sintax that I'm using is not working. The value returned is <code>undefined</code>. How can I get the value of the key <code>name</code> in json object?</p>
  
  <p>The response is store in costumer variable.</p>
  
  <pre><code>$http.get('url').
     then(function successCallback(response){
          var costumers = response;
          console.log(costumers['data']['costumers']['name']);
      }, function errorCallback(response){
  
  });
  </code></pre>
  
  <p>Json object</p>
  
  <pre><code>{data: "{"costumers":[{"id":"1","name":"John"},{"id":"2","name":"Mary"}]}"}
  </code></pre>