FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

JsonFormat annotation not working #122

Closed oleonov closed 7 years ago

oleonov commented 7 years ago
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import ru.sberbank.insurance.models.UserAction;

public class NewDataRequest {
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd'T'HH:mm:ss'Z'")
    Date date_begin;
    double numb;
    int point;
}

After serialization I have {"date_begin":"2017-06-08","numb":122.0,"point":61} Where is problem?