A while ago I asked this question in Stackoverflow which helped me be build this spring boot app
At the moment I have created my own object mapper with a SimpleModule
.
Then using my object mapper I am serializing the Node
object inside the Controller
class and I am returning a ResponseEntity<String>
based on the depth value that is passed in the request parameter.
What I want to achieve is to let Spring Boot do the serialization as it happens normaly. So from inside my Controller
I want to return ResponseEntity<Node>
and somehow replace Spring Boots ObjectMapper
with mine and do the serialization using the depth request parameter.
Any ideas are more than welcomed.
Thanks in advance