Package ratpack.core.jackson
Interface JsonRender
-
public interface JsonRender
Arenderable object wrapper
for rendering as JSON.- See Also:
Jackson.json(java.lang.Object)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getObject()
The underlying object to be rendered.ObjectWriter
getObjectWriter()
The object writer to use to render the object as JSON.Class<?>
getViewClass()
The view class to use when rendering the object.
-
-
-
Method Detail
-
getObject
Object getObject()
The underlying object to be rendered.- Returns:
- The underlying object to be rendered.
-
getObjectWriter
@Nullable ObjectWriter getObjectWriter()
The object writer to use to render the object as JSON.If null, the "default" writer should be used by the renderer.
- Returns:
- The object writer to be used.
-
-