title: Reading the returned JSON string from a webservice in the .done method
body: <p>How can I read the returned JSON string in JQuery in the following code:</p>
  
  <pre><code> var jqXHR = $.ajax(WEB_SERVICE + "createFolder?name=" + folder_name)
        .done(function( data, textStatus, jqXHR )  {
          alert(data ); // &lt;--- I want to alert the returnd string
        })
        .fail(function() {
          alert( "error" );
        }) 
        .always(function() {
          alert( "complete" );
        });
  </code></pre>
  
  <p>When I check the <code>data.childNodes[0].textContent</code> I get ""returned string"" -- with two quotes on each side. I want to get the string itself and use in in the .done method.</p>
  
  <p>In the .NET webservice I use:</p>
  
  <pre><code>return new JavaScriptSerializer().Serialize(new_folder_name);
  </code></pre>
  
  <p>To return a JSON string.</p>
  
  <p>Thanks</p>