Code Room
Code reviewHard
Question
Review this Java JSON config endpoint using Jackson.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
public class ConfigService { private final ObjectMapper mapper = new ObjectMapper(); public ConfigService() { // Allow polymorphic config objects to round-trip by type mapper.enableDefaultTyping(); } public Config load(String json) throws IOException { return mapper.readValue(json, Config.class); }}// json is the raw request body from POST /api/configRun or narrate your approach, then ask the coach.