Every time I use jackson json I realize how much I still don't know. That 
is ok. Today's problem is deserializing a class with an optional json 
attribute. If I don't mark the field with @JsonIgnore, I'll get a 
"Unrecognized field" error. If I do mark it with @JsonIgnore, it won't be 
populated.

I can make things work by making the field as @JsonIgnore then implementing 
a @JsonAnySetter to set it "manually", but this was interesting. Surely 
such a common problem has a better solution?

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to