We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(This is happening with 2.5.0. Haven't tried 2.5.1 but I couldn't see any related issue anyway)
Jackson ignores JsonSerialize annotation when there is JsonAnyGetter annotation.
@JsonSerialize(using = MySerializer.class) // or @JsonSerialize(converter = MyConverter.class) @JsonAnyGetter public Map<String, String> getParameters(){ return parameters; }
except
@JsonSerialize(keyUsing = MyKeySerializer.class)
(haven't tried each setting. Only tried keyUsing because I've seen a different issue (#661) with it) Then it works. But I need the converter, so..
For the time being I will use
@JsonAnyGetter public Map<String, JsonNode> getParameters(){ return new MyConverter().convert(parameters); }
but I'd prefer to stick to annotations.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this.
Sorry, something went wrong.
466f706
No branches or pull requests
(This is happening with 2.5.0. Haven't tried 2.5.1 but I couldn't see any related issue anyway)
Jackson ignores JsonSerialize annotation when there is JsonAnyGetter annotation.
except
(haven't tried each setting. Only tried keyUsing because I've seen a different issue (#661) with it)
Then it works. But I need the converter, so..
For the time being I will use
but I'd prefer to stick to annotations.
The text was updated successfully, but these errors were encountered: