Jackson – How to ignore null fields
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…
Favourite tutorials for developers
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…
APIs often self-document information, such as their implementation and internal structure, which can be used as intelligence for a cyber-attack. Additional vulnerabilities, such as weak authentication, lack of encryption, business…
Jackson provide writeValue() and readValue() methods to convert Java objects to / from JSON. mapper.writeValue – Java Objects to JSON. mapper.readValue – JSON to Java Objects.
In this tutorial, we will show you how to use Jackson 2.x to convert Java objects to / from a JSON: writeValue(...) – Java Objects to JSON , readValue(...) –…
JSON (JavaScript Object Notation) is a simple, lightweight and easy to read and write data exchange formats. In Java, normally we use Jackson or Gson to parse JSON.
This article shows you how to use the new Java 11 HttpClient APIs to send HTTP GET/POST requests, and some frequent used examples.
This article shows you how to use the OkHttp library to send an HTTP GET/POST requests and some frequent used examples.
REST API (also known as RESTful API) is an application programming interface (API) that adheres to the REST architectural conventions and constraints used in client-server communication. REST stands for REpresentational…
Spring is a popular Java application framework for creating enterprise applications. Spring Boot is the next step in evolution of Spring framework. It helps create stand-alone, production-grade Spring based applications…
There is no best Java Rest framework. There is also no best Java microservice framework. Different frameworks serve different needs. For example, you might modify an existing application to expose…