title: How to convert web service response input stream to java object?
body: <p>Upon executing a http request on my web serivce, I get a <code>javax.ws.rs.core.Response</code> object. When I call the <code>getEntity</code> method on the <code>Response</code> object I get an input stream, which is a string representation of JSON. Does anyone know how I can/should convert this string into a java object? Since, I'm using CXF can I use the JAXBContext? Or must I create a custom message body reader? Thanks.</p>