java - Jackson JSON schema date -


i generate json schema of class java.util.date field. fields type date getting:

"fieldname" : { "type": "integer", "format": "utc_millisec" }

what like:

"fieldname" :{ "type": "string", "format": "date-time" }

i configuration global pojos , not specific pojo. so, annotation on specific class not me.

thanks!

if want output date string should disable configuration serializationfeature.write_dates_as_timestamps on ojectmapper instances. every date object converted written string. see this link more information on serialisation features.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -