2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

how to convert json string to pojo object using jackson

how to convert json string to pojo object using jackson
userimage

Use below method to do:

ObjectMapper objectMapper = new ObjectMapper();

MapperClass mapper = (MapperClass) objectMapper.readValue(jsonString, MapperClass.class);


this will convert json string to java pojo object but make sure the variable in pojo class and the key in json string should match.

Answer is