Package com.seeq

Class JSON

java.lang.Object
com.seeq.JSON
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

public class JSON extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
  • Constructor Details

    • JSON

      public JSON()
  • Method Details

    • setDateFormat

      public void setDateFormat(DateFormat dateFormat)
      Set the date format for JSON (de)serialization with Date properties.
      Parameters:
      dateFormat - Date format
    • getContext

      public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
      Specified by:
      getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>