-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Milestone
Description
(problem reported by user via email)
Smile reader doesn’t do well with a map with an empty String key.
Map map = new HashMap();
map.put("foo", Collections.singletonMap("", "bar"));
ObjectMapper smileMapper = new ObjectMapper(new SmileFactory());
byte[] bytes = smileMapper.writer().writeValueAsBytes(map);
smileMapper.reader().readTree(new ByteArrayInputStream(bytes));
I get this exception:
Exception in thread "main" com.fasterxml.jackson.core.JsonParseException: Invalid shared name reference 2; only got 1 names in buffer (invalid content)
at [Source: java.io.ByteArrayInputStream@30c7da1e; line: -1, column: 12]
Metadata
Metadata
Assignees
Labels
No labels