Package ratpack.gson

Interface GsonRender

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.gson.Gson getGson()
      The Gson instance to use when serializing the object to JSON.
      java.lang.Object getObject()
      The underlying object to be rendered.
    • Method Detail

      • getObject

        java.lang.Object getObject()
        The underlying object to be rendered.
        Returns:
        The underlying object to be rendered.
      • getGson

        @Nullable
        com.google.gson.Gson getGson()
        The Gson instance to use when serializing the object to JSON. If null then an instance will be obtained from the registry or a default instance will be created.
        Returns:
        the Gson instance used in serialization.