Searching up on google I found this solution to read json strings from URL:
JSONObject json = new JSONObject(IOUtils.toString(new URL("https://somelink.com"), Charset.forName("UTF-8")));
The problem is that there is no JSONObject(String) constructor, why is that?