public interface JsonService
Service used to convert request/response bodies to beans.
-
Method Summary
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.<E> voidjsonWriteStream(Iterator<E> stream, SpiContext ctx)Write the beans as x-json-stream JSON with new line delimiter.
-
Method Details
-
jsonRead
Read the request body as a bean and return the bean. -
jsonWrite
Write the bean as JSON response content. -
jsonWriteStream
Write the beans as x-json-stream JSON with new line delimiter.
-