51,408
社区成员
发帖
与我相关
我的任务
分享如果一个json 是
{
"name": "test",
"content": "{\"a\":\"x\"}" // value是json的字符串
}
JAVA 类是:
class Foo {
@JsonProperty("name")
private String name;
@JsonProperty("content")
private Content content;
// getter and setter
public static class Content {
private String a;
// getter and setter
}
}
是否能通过json注解的方式生成Content对象