View Code? Open in Web Editor
NEW
This project forked from rlwing/customannotations-example
HTML 31.32%
CSS 17.01%
JavaScript 23.63%
Java 28.03%
customannotations-example's Introduction
Create a simple custom annotation
- Create 3 custom annotations
@JsonSerializable
- Indicates that class is serializable to json
@JsonElement
- Indicates that the field is to be serialized
@Init
- Identifies the method that will initialize the data before serialization
- Create a
Person
class and add our new annotations
- Create a
ObjectToJsonConverter
class to serialize the object to json
- Create a test to exercise your code
customannotations-example's People
Contributors