1try {
2			URL url = new URL("url");
3			HttpURLConnection conn = (HttpURLConnection)url.openConnection();
4			conn.setRequestMethod("GET");
5			conn.connect();
6			if(conn.getResponseCode() == 200) {
7				Scanner scan = new Scanner(url.openStream());
8				while(scan.hasNext()) {
9					String temp = scan.nextLine();
10                  	//parse json here
11                }
12            }
13}