Jackson – Convert JSON array string to List
Few Jackson examples to convert a JSON array string to a List.
Favourite tutorials for developers
Few Jackson examples to convert a JSON array string to a List.
In Jackson, we can use @JsonView to limit or control fields display for different users. Puts @JsonView on field level to limit fields display for different views. Below example, show…
In Jackson, we can use @JsonInclude(JsonInclude.Include.NON_NULL) to ignore the null fields. To ignore the null fields, put @JsonInclude on class level or field level. Alternatively, we also can configure to…
This MinguoDate calendar system is primarily used in Taiwan (Republic of China…). To convert the current date to the Minguo date, just subtracts the current year with number 1911
In Java, you can use the following ways to measure elapsed time in Java: System.nanoTime() - This is the recommended solution to measure elapsed time in Java. We also can…
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String. Convert the String to LocalDateTime and change the date format with DateTimeFormatter. Convert the String to…
This Java example shows you how to display a list of TimeZone with GMT in front.
A Java 8 example to display all the ZoneId and its OffSet hours and minutes.
In Java, we can use Timestamp.valueOf(LocalDateTime) to convert a LocalDateTime into a Timestamp. Java example to convert java.time.LocalDateTime to java.sql.Timestamp and vice verse.
Java example to convert java.time.ZonedDateTime to java.sql.Timestamp and vice verse. 1. ZonedDateTime -> Timestamp TimeExample1.java Output 2. Timestamp -> ZonedDateTime TimeExample2.java Output Download Source Code $ git clone https://github.com/favtuts/java-core-tutorials-examples $…