I would like to serialize a HashMap as a string through the Jackson JSON processor. For example:
String strMap = getMapper().writeValueAsString(myHashMap); r
With latest Jackson version, on the ObjectMapper, you can do:
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);