boonproject/boon

Parsing ZonedDateTime: "Unable to extract annotation for property chronology"

Opened this issue · 0 comments

I am trying to parse a field into ZonedDateTime using Boon Json library and receive the following error (abriged):

handleExceptionorg.boon.Exceptions$SoftenedException: fieldName order  of class 
  RowModel had issues for value MAP for field FieldInfo [name=order, 
  type=class OrderRowModel]
CAUSE org.boon.Exceptions$SoftenedException :: fieldName updatedAt of class class OrderRowModel
  had issues for value 2017-02-13T13:07:09.481Z for field FieldInfo 
  [name=updatedAt, type=class java.time.ZonedDateTime]
CAUSE org.boon.Exceptions$SoftenedException :: name chronology setter null 
  getter public default java.time.chrono.Chronology 
  java.time.chrono.ChronoZonedDateTime.getChronology()
CAUSE org.boon.Exceptions$SoftenedException :: Unable to extract annotation for property
  chronology  of class  interface java.time.chrono.ChronoZonedDateTime   useRead  false

I suppose I should somehow add support or configure Boon.Json to handle ZonedDateTime properly. How can I avoid the error?