Which of the following annotations indicates which fields of a Java object, based on their values, should be included or omitted during serialization?

14. Which of the following annotations indicates which fields of a Java object, based on their values, should be included or omitted during serialization?

  1. @Json
  2. @JsonInclude
  3. @Include
  4. @IncludeJson

Answer: B) @JsonInclude

Explanation:

@JsonInclude annotations indicate which fields of a Java object, based on their values, should be included or omitted during serialization.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.