I try to get information via Scala from this website: https://hypixel-api.inventivetalent.org/api/skyblock/bosstimer/magma/estimatedSpawn
I tried with a few methods but mostly the only respons I get is java.security.AccessControlException: access denied stuff.
It would be helpful if someone could give me a good library for json and could tell me how to get the json from this website.
Complete Exception:
Exception in thread "Thread-19" java.security.AccessControlException: access denied ("java.net.SocketPermission" "hypixel-api.inventivetalent.org:443" "connect,resolve")
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
    at java.security.AccessController.checkPermission(AccessController.java:886)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1051)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:541)
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
    at java.net.URLConnection.getContent(URLConnection.java:739)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContent(HttpsURLConnectionImpl.java:448)
    at java.net.URL.getContent(URL.java:1071)
    at CastBotPlugin.foo$1(CastBotPlugin.scala:196)
    at CastBotPlugin.$anonfun$magmaBoss$1(CastBotPlugin.scala:203)
    at java.lang.Thread.run(Thread.java:748)