fastjson icon indicating copy to clipboard operation
fastjson copied to clipboard

@JSONField Annotation cannot be applied to Annotation

Open lujiajing1126 opened this issue 7 years ago • 3 comments

I found that the com.fasterxml.jackson.annotation.JsonIgnore can be applied to an Annotation, which makes the composition of annotations possible.

It would be useful while defining custom annotations, for example, compositing both fastjson's @JSONField and jackson's @JsonIgnore

I wonder if fastjson could add this feature in the near feature.

lujiajing1126 avatar Aug 23 '17 05:08 lujiajing1126

that's a good idea to add jsonignore feature

kimmking avatar Aug 27 '17 13:08 kimmking

3 years have passed, still not added

haoqi6677 avatar Sep 19 '20 01:09 haoqi6677

突然发现@JsonIgnore注解起作用了,我的属性序列化时被忽略了,导致出现bug了,唉~~~~~~~

lizhen789 avatar Jun 15 '22 04:06 lizhen789