In sitebricks, I can easily deserialize a class from params in json format in Sitebricks @Service
method like this:
request.read(Person.class).as(Json.class);
But how do I deserialize a class from get/post params?
I know the Request
object has access to the params (request.params()
) but it would require more effort.