-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jackson does not honor contentUsing in @JsonSerialize under some circumstances #358
Comments
Looks like the |
Ok I'll have a look. It is possible that |
One quick question: is this with Java 8? I recall some oddities with |
No, I can reproduce this with 1.7 as well. Different issue. |
Looks like the problem is that annotation for serializer to use, for content type, gets dropped if there is |
Ah. It wasn't anything fancy -- as you correctly suggested, |
Jackson version: 2.3.0
While trying to work around Issue #357, I found another bug.
Jackson does not honor
contentUsing
in@JsonSerialize
under some circumstances.This gives the following output:
However, replacing
as = Iterable.class
byas = List.class
gives output:The text was updated successfully, but these errors were encountered: