基于这段 json 需要什么 Jackson POJO 结构?
就像是 ?:
class POJO {
private List<ToAddList> toAdd;
private List<ToRemoveList> toRemove
}
class ToAddList(){
String name;
int pos;
}
class ToRemoveList(){
String name
}
///////////////////////JSON///////////////////////////
{
"toAdd": [
{
"name": "test",
"pos": 0,
},
{
"name": "test",
"pos": 1,
},
],
"toRemove": [
{
"name": "test"
},
{
"name": "test"
}
]
}