Code example for InputStreamReader

0
            return new JSONObject(getResponse(response));
        return null; 
    } 
 
    protected String getResponse(HttpResponse response) throws IOException {
        return CharStreams.toString(new InputStreamReader(response.getEntity().getContent()));
    } 
 
    private User getUser() { 
        return RapidFtrApplication.getApplicationInstance().getCurrentUser(); 
    } 
 
}