Class JsonService

java.lang.Object
io.atlasmap.json.service.JsonService

@Path("/json/") public class JsonService extends Object
  • Constructor Details

    • JsonService

      public JsonService()
  • Method Details

    • toJson

      protected byte[] toJson(Object value)
    • fromJson

      protected <T> T fromJson(InputStream value, Class<T> clazz)
    • simpleHelloWorld

      @GET @Path("/simple") @Produces("text/plain") public String simpleHelloWorld(@QueryParam("from") String from)
    • inspect

      @POST @Path("/inspect") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response inspect(InputStream requestIn)
    • validJsonData

      protected boolean validJsonData(String jsonData)
    • cleanJsonData

      protected String cleanJsonData(String jsonData)