# devopsgym / codegen__fasterxml__jackson-databind-3666 - taskset: [devopsgym](https://harnessreport.com/tasks/devopsgym.md) - difficulty: hard - category: code-generation - language: - runnable from the site: no - agent timeout: 3000s ## Results by harness _none yet_ ## Instruction ``` This is a code generation task. You are expected to write working code that solves the described problem. <issue> Using Jackson `2.9.9.3`. This issue was carried over from micronaut-core: https://github.com/micronaut-projects/micronaut-core/issues/8215 Example test-case: ```java package arrayissue; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.annotation.JsonCreator; enum MyEnum { FOO("FOO"), BAR("BAR"); private String value; MyEnum(String value) { this.value = value; } public static void main(String[] args) throws JsonProcessingException { ObjectMapper om = new ObjectMapper(); om.enable(DeserializationFeature.UNWRAP_SINGLE_VALUE_ARRAYS); System.out.println(om.readValue("\"FOO\"", MyEnum.class)); System.out.println(om.readValue("[\"FOO\"]", MyEnum.class)); } @JsonCreator public static MyEnum fromValue(String text) { System.out.println("-- CONVERTING FROM: " + text); return MyEnum.FOO; } } ``` Result: ``` -- CONVERTING FROM: FOO FOO -- CONVERTING FROM: null FOO ``` </issue> Focus on implementing the required functionality correctly and efficiently. Treat this as a programming challenge. You are not allowed to read git history. ``` --- Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp