0

What I should write in this method?

public String deserialize(JsonParser parser, DeserializationContext ctx, Type rtType) {
    while (parser.hasNext()) {

    }
    return "";
  }
  • You could annotate the properties that can be *null* with `@DefaultValue(" ") public String optionalMember;`. – Codo Jan 08 '19 at 21:43
  • This should work with all fields in all classes. If I use this annotation i will should write it in any classes. I think it is not good desicion. – user220297 Jan 08 '19 at 21:49

0 Answers0