Hi, I have a problem with `ObjectMapper` when i t...
# spring
d
Hi, I have a problem with
ObjectMapper
when i try to convert json to
Map
Copy code
objectMapper.convertValue("{}", Map::class.java)
i get an exception
Copy code
com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of java.util.LinkedHashMap: no String-argument constructor/factory method to deserialize from String value ('{}')
 at [Source: N/A; line: -1, column: -1]
same thing when json has fields in it. Any ideas?
changed
convertValue
to `readValue`and now it's fine 😐