You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotation used to indicate that a property should be serialized "unwrapped"; that is, if it would be serialized as JSON Object, its properties are instead included as properties of its containing Object. For example, consider case of POJO like:
public class Parent {
public int age;
public Name name;
}
public class Name {
public String first, last;
}
which would normally be serialized as follows (assuming @JsonUnwrapped had no effect):
{
"age" : 18,
"name" : {
"first" : "Joey",
"last" : "Sixpack"
}
}
can be changed to this:
{
"age" : 18,
"first" : "Joey",
"last" : "Sixpack"
}
by changing Parent class to:
public class Parent {
public int age;
@JsonUnwrapped
public Name name;
}
The text was updated successfully, but these errors were encountered:
LawlietNot
changed the title
关于 @JsonUnwrapped 脚本无法支持提出包装类
关于 @JsonUnwrapped 脚本无法支持去除包装类
Jul 4, 2023
https://github.com/tangcent/easy-yapi/blame/f87fb82a4129bffb7a6ead88c53a2285ba5483ef/idea-plugin/src/main/resources/.recommend.easy.api.config#L64-L65
这个注解的含义是去除标识字段包装类,但这个配置实际只能支持增加前后缀
请问有什么方法可以改变 json 的解析可以支持把包装的字段去除 ?
The text was updated successfully, but these errors were encountered: