Boon

Boon – @JsonViews

  • Post author:
  • Post category:Boon
  • Post comments:0 Comments

@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…

Continue ReadingBoon – @JsonViews

Boon – @JsonInclude

  • Post author:
  • Post category:Boon
  • Post comments:0 Comments

@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…

Continue ReadingBoon – @JsonInclude

Boon – Sources

  • Post author:
  • Post category:Boon
  • Post comments:0 Comments

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…

Continue ReadingBoon – Sources