Boon – @JsonProperty
@JsonProperty is used to mark the non-standard getter/setter method to be used with respect to JSON property. Example - @JsonProperty The following example is for @JsonProperty − import org.boon.json.JsonFactory; import…
@JsonProperty is used to mark the non-standard getter/setter method to be used with respect to JSON property. Example - @JsonProperty The following example is for @JsonProperty − import org.boon.json.JsonFactory; import…
In this chapter, we will discuss Constructors in Kotlin. learn about constructors in Kotlin. Kotlin has two types of constructor - one is the primary constructor and the other is the secondary constructor.…
@JsonViews is used to control values are to be serialized or not. Example - @JsonView The following example is for @JsonView − import org.boon.json.JsonSerializer; import org.boon.json.JsonSerializerFactory; import org.boon.json.annotations.JsonViews; public class…
@JsonInclude is used to include properties having null/empty or default values. By default Boon ignores such properties during serialization/de-serialization. Example - @JsonInclude The following example is for @JsonInclude − import…
In this chapter, we will discuss Class & Object in Kotlin and learn the basics of Object-Oriented Programming (OOP) using Kotlin. We will learn about class and its object and…
@JsonIgnore is used at field level to mark a property or list of properties to be ignored. Example - @JsonIgnore The following example is for @JsonIgnore − import org.boon.json.JsonFactory; import…
ObjectMapper class can be used to work with different date formats in JSON. It can be used to generating date objects as well. By default, ObjectMapper generates Date in long milliseconds…
In this guide, we will discuss Lists in Kotlin. Kotlin list is an ordered collection of items. A Kotlin list can be either mutable (MutableList) or read-only (List). The elements…
ObjectMapper class can be used to work with different date formats in JSON. It can be used to parse/generate a String of date. Example The following example is using ObjectMapper class…
ObjectMapper class can be used to work with different date formats in JSON. It can be used to parse/generate a long of data. Example The following example is using ObjectMapper class…