Hey, all. I'm trying to add support for deserializ...
# multiplatform
d
Hey, all. I'm trying to add support for deserializing XML to objects in my shared module, but I'm having trouble getting commonMain to see the Jackson object mapper. I added the following to my project files: [to libs.version.toml]
Copy code
jackson = { group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version.ref = "jackson" }
jackson-xml = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jackson" }
to shared/build.gradle.kts in commonMain.dependencies{}:
Copy code
implementation(libs.jackson)
implementation(libs.jackson.xml)
But, inside of my class that wants to parse incoming XML to a list of objects, the method "jacksonObjectMapper()" doesn't appear to be addressable. I've been googling all morning and am completely stumped. Any help on getting this to work?