I have to create JSON parser to save data received from url into JSON object using org.json library and only java standard libraries but I have no idea how to connec to those
String line = "326";
URL oracle = new URL("https://api.tfl.gov.uk/Line/"+line+"/Arrivals?app_id=&app_key=");
BufferedReader in = new BufferedReader(
new InputStreamReader(oracle.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
This my connection code