79639075

Date: 2025-05-26 14:16:04
Score: 1
Natty:
Report link

for the ObjectMapper a method accepts any class as a parameter

public <T extends MyClass> T getInstance(String json, Class<T> root) throws JsonProcessingException {
        
        return mapper.readValue(json, root);
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Александр Бурняшев