title: JSONObject(String) constructor is undefined, even though its in the docs
body: <p>from the android documentation:<br>
  "</p>
  
  <pre><code> JSONObject(String json)
  </code></pre>
  
  <p>Creates a new JSONObject with name/value mappings from the JSON string."</p>
  
  <p>however my eclipse is complaining that such constructor doesnt exist when I do this:</p>
  
  <pre><code>InputStream ins = appContext.getResources().getAssets().open("bar-data.json");
  
  byte[] bytes = new byte[ins.available()];
  ins.read(bytes);
  String string = new String(bytes);
  JSONObject jsonobj = JSONObject(string);
  </code></pre>
  
  <p>error: 
  The method JSONObject(String) is undefined for the type BarPage </p>
  
  <p>(barPage is the name of my activity)</p>
  
  <p>edit: this is the library in importing:</p>
  
  <p>import org.json.JSONObject;</p>