Ignore Null fields in JSON using Jackson

In some of the previous posts we have seen the conversions of JSON to and from Java objects. Java to JSON & JSON to Java. While converting Java class into JSON, we may sometimes have some null values that we do not

Read More

Convert Java Map to/from JSON using Jackson

In this post we will see how to Convert Java Map to/from JSON using Jackson.For this we will be using the [crayon-59edebf8a21f7002065870-i/] and   [crayon-59edebf8a2200111545592-i/] We will have a map with employee object for the conversion Employee.java [crayon-59edebf8a2205393842548/] 1. Converting Java Map

Read More

Convert JSON to Java Object using Jackson

In the previous post you saw How we converted Java Object to JSON. Now lets see how to Convert JSON to Java Object using Jackson. You will need the same dependency or Jar files that were mentioned in the previous post. In

Read More

Convert Java Object to JSON using Jackson

Jackson is a easy to use API that can help in the Java to/from JSON transformation. In this post lets see how to convert java object to json using Jackson. Add Jackson dependency Please note we are using jackson 2 in our

Read More