dmnk_89
05/26/2017, 8:24 AMObjectMapper
when i try to convert json to Map
objectMapper.convertValue("{}", Map::class.java)
i get an exception
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?dmnk_89
05/26/2017, 8:32 AMconvertValue
to `readValue`and now it's fine 😐