title: Reading json data return to jQuery
body: <p>I'm using the following code to get some json formatted data:</p>
  
  <pre><code>$.ajax({
              type: "GET",
              url: "MyService.svc/GetSomeData",
              dataType: "text",
              success: function (data, textStatus) {
  
                  alert("Test: " + data.toString());
              },
              error: function (xhr, textStatus, errorThrown) {
                  alert("Error: " + (errorThrown ? errorThrown : xhr.status));
              }
          });
  </code></pre>
  
  <p>Data is successfully returned to this call, and it looks like this:</p>
  
  <pre><code>{"d":"test data"}
  </code></pre>
  
  <p>My guess was that I could access the data as follows:</p>
  
  <pre><code>var myData = data["d"];
  </code></pre>
  
  <p>However this seems to always return "undefined".  What am I missing to get the single string of data "test data"?</p>