title: Getting data through jQuery ajax request
body: <p>I'm using the following code to get the dataa from the server:</p>
  
  <pre><code>  $.getJSON('http://xxx.xxx.xxx.xx/SampleWebService/Service.svc/SampleMethod?callback=?', dd, function (data) {
                  alert(data);
    });
  </code></pre>
  
  <p>From the server, I'm sending the byte array as response.
  In <code>firebug</code>, in <code>Net &gt; Response</code> tab, I get:</p>
  
  <pre><code>jQuery19101878696953793153_1365677709012([67,37,94,38,42,44,69,67,71,32,97,116,116,97,99,104,101,100,32,102,111,114,32,112,97,116]);
  </code></pre>
  
  <p>Also in <code>Net &gt; JSON</code> tab, I get data with several keys.</p>
  
  <p>But how to get the data at <code>alert(data);</code>; so that I process on that data.
  I don't know, how this thing works.</p>
  
  <p>Edit:</p>
  
  <p>I tried this different approach: </p>
  
  <pre><code> $.ajax({
                  type: "GET",
                  dataType: "jsonp",
                  contentType: "application/javascript",
                  data: dd,
                  crossDomain: true,
                  url: "http://xxx.xxx.xxx.xx/SampleWebService/Service.svc/SampleMethod",
                  success: function (data) {
                      alert(JSON.parse(data));
                  },
                  complete: function (request, textStatus) { //for additional info
                      alert(request.responseText);
                      alert(textStatus);
                  },
                  error: function(request, textStatus, errorThrown) {
                      alert(textStatus);
                    }
              });
  </code></pre>
  
  <p>But I got: <code>parseerror</code> as alert.</p>