title: How to un escape strings extracted from json objects in java?
body: <p>In my java program where I download a json object, when I get a string from it, it will be like <code>"what\'s"</code> for example, even though in PHP I put in <code>"what's"</code>. It has back slashes to escape the quotes and possibly other characters. Is there a java function I can use to unescape this and turn it into <code>"what's"</code>?</p>
  
  <pre><code>JSONObject object = new JSONObject(response);
  firstname = object.getString("firstname");
  </code></pre>