假设我有以下JSON,(设计隐藏对我项目的任何引用):
{
"name": "Johnny Bravo",
"addresses": {
"home": {
"street": "123 Any Street",
"city": "Anytown",
"state": "AA",
"zip": "99999"
},
"work": {
"street": "9870 Some Boulevard",
"city": "Someville",
"state": "AA",
"zip": "98765"
}
}
}
如果我将其反序列化为人员POJO,其中包含作为地址POJO的个人家庭和工作字段,并且在地址上,除了街道,城市,州和邮编之外,还存在"类型&# 34;字段,是否有一个Jackson注释,它允许我访问对象名称(" home",work")并在Address.type字段上设置它们?