Package ratpack.gson

Interface GsonRender

    • Method Detail

      • getObject

        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.