JSON constructor shown as undefined
<p><code>JSONObject</code> has an available constructor <code>JSONObject(String s)</code> available, but eclipse is telling me it is undefined.</p>

<p><a href="http://www.json.org/javadoc/org/json/JSONObject.html#JSONObject(org.json.JSONObject,%20java.lang.String[])" rel="nofollow">Documentation</a>  </p>

<p>My code is as following:</p>

<pre><code>URL url = new URL("https://ajax.googleapis.com/ajax/services/search/images?" +"v=1.0&amp;q=barack%20obama&amp;userip=INSERT-USER-IP");

URLConnection connection = url.openConnection();
connection.addRequestProperty("Referer",  "http://google.com");

String line;
StringBuilder builder = new StringBuilder();
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));

while((line = reader.readLine()) != null) {
   builder.append(line);
}

JSONObject json = new JSONObject(builder.toString()); //Error, undefined
</code></pre>

<p>I have triple checked that all my libraries are the latest and most stable, as well as implemented properly(apart of my build path).</p>