Hi everyone any idea how to create a json object w...
# spring
a
Hi everyone any idea how to create a json object with json array in your controller? As the example attached
t
a
Thanks @Thiago Nerys
t
r
It's a good practice not to return arrays, this makes extension harder. Not sure what your resource is about, but you could return a
PersonsDTO(val persons:List<Person>)
t
@Robert I found it extremely hard (actually couldn't find a way to do it) to return a wrapper around an array and still keep the reactive way for returning a Flux in WebFlow.
r
Good Point! Seems like for a Flux it won't work