We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Map.Entry
@JsonFormat.shape = Shape.OBJECT
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
So, with configuration like:
ObjectMapper mapper = JsonMapper.builder() .withConfigOverride(Map.Entry.class, cfg -> cfg.setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT))) .build();
attempts to serialize Map.Entry of JDK Maps (like LinkedHashMap) fails due to access problems (unless --add-opens is used).
LinkedHashMap
--add-opens
There is an existing test that fails this way. But we should be able to have a serializer that works with public API in this case.
The text was updated successfully, but these errors were encountered:
Fix #4963
f1dc40f
21ea7f5
No branches or pull requests
So, with configuration like:
attempts to serialize
Map.Entry
of JDK Maps (likeLinkedHashMap
) fails due to access problems (unless--add-opens
is used).There is an existing test that fails this way. But we should be able to have a serializer that works with public API in this case.
The text was updated successfully, but these errors were encountered: