You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]