title: How to parse JSON with JavaScript from Ajax request
body: <p>I have this code:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>GameManager.prototype.initGame = function () {
      var api  = 'my_url';
      $.ajax({
          url : api,
          type : 'POST',
          data: "",
          dataType : 'json',
          success : function(data) {
              alert(data);
          }
      });
  };
  </code></pre>
  
  <p>I see in the Firebug console the JSON:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>[{"data":{"score":500,"token":"2896c5380bf3e3e29467258c7fe885fe"}}]
  </code></pre>
  
  <p>But the <code>alert(data)</code> shows me <code>[object Object]</code>.</p>