title: How to parse json response using JavaScript?
body: <p>I am new to phone gap application development and 
  I am trying to call a web service from my app for getting data from the server. <strong>I am succeeded to call a REST web service but getting problem with the parsing of JSON response using JavaScript</strong>. </p>
  
  <p>My code for calling the service is as follow:</p>
  
  <pre><code>     $.ajax({
                      type: "POST",
                      url: "http://www.url.php",
                      contentType: "application/x-www-form-urlencoded",
                      data: dataString,
                      success: function(response) {
                          alert("success!");
  
                      },
                      error: function(request, status, error) {
                      console.log("Error status " + status);
                      console.log("Error request status text: " + request.statusText);
                      console.log("Error request status: " + request.status);
                      console.log("Error request response text: " + request.responseText);
                      console.log("Error response header: " + request.getAllResponseHeaders());
                      }
              });
  </code></pre>
  
  <p>I am able to get in to the success block of the code but the problem is i am not able to parse the response using JavaScript.
  Please guide or help me to acheive the task.</p>
  
  <p>Thanks.   </p>