I have a JAX-RS service return a simple java object that contains "/" in the
String value and that will be escaped into "\/". How can I stop this
behavior? 

        @GET    
        @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
        @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
        @Path("{id}")
        public Vehicle getVehicle(@PathParam("id") String id) {
            // cook a Vehicle instance that has one of the field: String
urlStr = "http://test.com/test/";;
            return veh;
        }

the result I got for that field will be: "http:\/\/test.com\/test\/". 



--
View this message in context: 
http://cxf.547215.n5.nabble.com/forwardslash-being-escaped-from-json-response-tp5727304.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to