I am converting InputStream to JSONObject using following code. My question is, is there any simple way to convert InputStream to JSONObject. Without doing InputStream -> Bu
The best solution in my opinion is to encapsulate the InputStream in a JSONTokener object. Something like this:
JSONObject jsonObject = new JSONObject(new JSONTokener(inputStream));