Convert InputStream into JSON
问题 I am using json-rpc-1.0.jar.Below is my code. I need to convert InputStream object into JSON since the response is in JSON. I did verify the json response obtained from Zappos API. It is valid. PrintWriter out = resp.getWriter(); String jsonString = null; URL url = new URL("http://api.zappos.com/Search?term=boots&key=my_key"); InputStream inputStream = url.openConnection().getInputStream(); resp.setContentType("application/json"); JSONSerializer jsonSerializer = new JSONSerializer(); try {