title: Constructor JSONObject(java.lang.String)
body: <p>I am getting this compilation error:</p>
  
  <blockquote>
    <p>cannot find symbol Constructor JSONObject(java.lang.String) </p>
  </blockquote>
  
  <p>Can any one explain what is wrong with it?</p>
  
  <pre><code>String jsnString = new String("{\"fname\":\"DKP\",\"lname\":\"patel\"}");
  JSONObject jObj = new JSONObject(new String(jsnString)); 
  </code></pre>
  
  <p>I also tried with:</p>
  
  <pre><code>JSONObject jObj = new JSONObject(jsnString); 
  </code></pre>