So I'm trying to get the JSON file that the Twitch API provides from apt.twitch.tv/kraken/atreams/(Streamername) and put that into a File Object. any help? Code: try{ URL url = new URL("http://api.twitch.tv/kraken/streams/" + streamname); JSONParser par = new JSONParser(); File f = new File(url.getFile()); JSONArray obj = (JSONArray) par.parse(new FileReader(f)); for(Object o : obj){ JSONObject ob = (JSONObject) o; Object stream = ob.get("Stream"); System.out.println(stream + ""); } }catch(Exception e){ e.printStackTrace(); }
@blm456 Your only supposed to bump every 24 hours and it has been 32 minutes. About the issue, have you looked at this? http://stackoverflow.com/questions/8324862/how-to-create-file-object-from-url-object Ive touched the URL class like once or twice so I wouldn't know.