While providing JSON data through Spring Boot or Spring web services, we might have situation where the JSON data contains Date data. By default, the dates are not formatted in human readable format. However, there are ways to format the dates as we want. Here we will see use of two annotations: JsonSerialize JsonFormat Let us see the source code how we can use these annotations. 1. build.