I'm using spring mvc to return a Tagset JSON object. I have the two following java objects
public class Tagset {
private String tag;
private String tagDisplayName;
private List<Case> caseList;
}
public class Case {
private String title;
private String url;
}
The response I'm getting is:
{"tag":"Bluetooth",
"tagDisplayName":"Bluetooth 101",
"caseList":[
{"title":"How do I update my Bluetooth?",
"url":"https://test.test.com"},
{"title":"How do I delete my Bluetooth?",
"url":"https://test.test.com"}
]
}
What I would like is for the case name to show for every case object:
{"tag":"Bluetooth",
"tagDisplayName":"Bluetooth 101",
"caseList":[
case:{"title":"How do I update my Bluetooth?",
"url":"https://test.test.com"},
case:{"title":"How do I delete my Bluetooth?",
"url":"https://test.test.com"}
]
}