I have debate with my team, I have a rest ws that return something in certian format The format look something like that
{
Name:{
Inner:[
{
inner:[
{
inner:"hdjdjd"
}
]
}
]
}
}
In the ws I return data in this format only once.
My teams think that I should create the json using jacksons object node in the response method. And I think that I should model the format in pojo class and then return the the class json represantation (using jackson) What is the right option?