Module io.avaje.jex

Interface JsonService


  • public interface JsonService
    Service used to convert request/response bodies to beans.
    • Method Detail

      • jsonRead

        <T> T jsonRead​(Class<T> type,
                       SpiContext ctx)
        Read the request body as a bean and return the bean.
      • jsonWrite

        void jsonWrite​(Object bean,
                       SpiContext ctx)
        Write the bean as JSON response content.