Jackson- Json Java Data Binding

What is JSON Java Data Binding? A thing that most java developers love to deal with is …. Java POJO. Wouldn’t you love a black box where you can see JSON string entering from one side and POJOs coming out from the other. That’s what Jackson’s JSON java data binding does. This can be best … Read more

Jackson – JSON to java tree model

JSON to Java Tree Model Example Jackson provides a tree node called com.fasterxml.jackson.databind.JsonNode. The ObjectMapper provides a method to convert JSON to Java tree model with the root being a JsonNode. This can be thought of as being similar to DOM nodes in XML DOM trees. The example below demonstrates building a tree from the … Read more

Java JSON Jackson Introduction

Overview of the Java JSON Jackson library The java JSON Jackson is a JSON library for Java It has very powerful data binding capabilities and provides a framework to serialize custom java objects to JSON  and deserialize JSON  back to Java objects. JSON written with Jackson can contain embedded class information that helps in creating the … Read more

Java 8 – Date Time API

Introduction Java 8 comes with a much improved and much required change in the way date and time is handled. Almost all of us have experienced the pains of working with date in java. Most of us have switched to Joda Time, but java 8 has changed that with a much cleaner and more extensive … Read more

Java 8 – Streams

Introduction In the first article we learned about Lambdas, functional interfaces and method references introduced in Java 8. In the previous article we saw some of the new methods added in the Collections hierarchy. In this article we look at what is probably the most important addition to Java since generics – Streams. Streams make … Read more

Java 8 – New methods in Collections

Introduction In the first article we learned about Lambdas, functional interfaces and method references introduced in Java 8. In the previous article we saw default methods in interfaces and their inheritance rules. In this article we look at the new default methods added in the Collections hierarchy. Many of the new methods make use of … Read more

Java 8 – Default Methods, inheritance

Default Methods In the previous article we learned about functional programming using lambdas introduced in java8. We also learned about functional interfaces and method references. In this tutorial we will look at a side effect in Java8 – Default methods. The designers in Java always strive for backward compatibility, and so to add methods to … Read more