我想为以下结构定义一个 JAXB 映射类。
{
"family members": ["me","my dad","someone else"],
"relations" : [{"me":17 years, "my dad":40 years, "relation":son & father}, {"my dad":40 years, "me":17 years, "relation":father & son},{"me": 17 years, "someone else":50 years, "relation":ancestor}]
}
我应该如何注释 POJO ?请忽略有关避免冗余或存储此信息的其他替代方式的建议。