title: How to automatically unescape the escape characters in a string
body: <p>I am receiving the data from the service with the escape sequence characters...I have managed to elemenate them by this code</p>
  
  <pre><code>results=results.replace("\\\"", "\"");
  if(results.startsWith("\"")) {
      results=results.substring(1,results.length());
  }
  if(results.endsWith("\"")) {
      results=results.substring(0,results.length()-1); 
  }
  </code></pre>
  
  <p>It works fine but for some strings it throws exception while creating json object...How do I automatically unescape the escape characters in the result, I have searched for answers but many of them saying to use a third party library...what is the best I can achieve this.</p>