S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of the @JsonIgnore annotation?

  • (A) To ignore bean methods
  • (B) To skip a field during JSON serialization
  • (C) To prevent injection
  • (D) To ignore application.properties
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@JsonIgnore is used to exclude a field from being serialized or deserialized.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.