0

Is it a good practice to add redundant @JsonProperty when using JacksonMapper? Even if the class vars are same named as the incoming json(and you deserialize the json)?

  • What can be possible upsides?
  • What can be possible downsides?
Shiva
  • 1,962
  • 2
  • 13
  • 31
user1294764
  • 103
  • 9

1 Answers1

0

The downside,as you suggested, it's reduandant,especially when this class was replaced from codehaus package to fasterxml so if you have old property you will have to refactor class

org.codehaus.jackson is an older version of Jackson.

com.fasterxml.jackson represents the new project and package.

Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233