title: java.lang.String cannot be cast to org.json.simple.JSONObject simple-json
body: <p>I am getting strange problem while trying to parse a simple json using simple-json by google.</p>
  
  <p>Here is my code which is not working:</p>
  
  <pre><code>String s = args[0].toString();
  JSONObject json = (JSONObject)new JSONParser().parse(s);
  </code></pre>
  
  <p>When I execute, it will give me the exception <code>java.lang.String cannot be cast to org.json.simple.JSONObject</code></p>
  
  <p>But when I hard code json directly like below its working fine. Wat could be the reason?</p>
  
  <pre><code>JSONObject json = (JSONObject)new JSONParser().parse("{\"application\":\"admin\",\"keytype\":\"PRODUCTION\",\"callbackUrl\":\"qwerewqr;ewqrwerq;qwerqwerq\",\"authorizedDomains\":\"ALL\",\"validityTime\":\"3600000\",\"retryAfterFailure\":true}");
  </code></pre>
  
  <p>UPDATE</p>
  
  <p>When I print s, it will give me the output below:</p>
  
  <pre><code>"{\"application\":\"admin\",\"keytype\":\"PRODUCTION\",\"callbackUrl\":\"qwerewqr;ewqrwerq;qwerqwerq\",\"authorizedDomains\":\"ALL\",\"validityTime\":\"3600000\",\"retryAfterFailure\":true}"
  </code></pre>