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…
Boon
@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…
@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…
@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…
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…
ObjectMapper class can be used to generate a JSON string from a Map. Example The following example is using ObjectMapper class to generate a JSON string from a Map Object. import…
ObjectMapper class can be used to generate a JSON string from Object. Example The following example is using ObjectMapper class to generate a JSON string from a Student Object. import org.boon.json.JsonFactory;…
ObjectMapper class can be used to parse a JSON from varying sources. It can use the following sources to parse JSON. byte Arraychar ArrayFileReader classesInput Stream classesString Example The following example…