-
public interface JsonServiceService used to convert request/response bodies to beans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TjsonRead(Class<T> type, SpiContext ctx)Read the request body as a bean and return the bean.voidjsonWrite(Object bean, SpiContext ctx)Write the bean as JSON response content.
-
-
-
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.
-
-