try {         
   url = new URL(https_url);
   HttpsURLConnection posts = (HttpsURLConnection)url.openConnection();
} catch (MalformedURLException e) {
   e.printStackTrace();
} catch (IOException e) {
   e.printStackTrace();
}  
How can I convert the HttpsURLConnection posts object to JSONObject? Thanks in advance. :)
Answer: using the mvn org.json
 
     
     
     
    