@JsonFormat: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* https://fasterxml.github.io/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonFormat.html
=Internal=
=Internal=


Line 9: Line 13:
To format Date objects in bulk at ObjectMapper level, use a DateFormat on the ObjectMapper, as described here: {{Internal|Jackson_ObjectMapper#Specifying_a_Date_Format|Specifying a Date Format at ObjectMapper Level}}
To format Date objects in bulk at ObjectMapper level, use a DateFormat on the ObjectMapper, as described here: {{Internal|Jackson_ObjectMapper#Specifying_a_Date_Format|Specifying a Date Format at ObjectMapper Level}}


=a=
Playground Example:
 
{{External|[https://github.com/ovidiuf/playground/tree/master/json/jackson/annotations/%40JsonFormat-for-Dates Playground @JsonFormat for Date Example]}}

Latest revision as of 17:25, 14 November 2018

External

Internal

Overview

Formatting Date

To format Date objects in bulk at ObjectMapper level, use a DateFormat on the ObjectMapper, as described here:

Specifying a Date Format at ObjectMapper Level

Playground Example:

Playground @JsonFormat for Date Example