jeggy
10/18/2022, 5:50 PMCould not find a field for name Attendee/FirstName
candidates: firstname, middleInitial, lastname, suffix, title, company, externalId, custom1, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9, custom10, custom11, custom12, custom13, custom14, custom15, custom16, custom17, custom18, custom19, custom20, custom21, custom22, custom23, custom24, custom25 at position Line number = 3
I have tried renaming the firstname
to FirstName
, but it still won't find it and just give the same error.jeggy
10/18/2022, 5:54 PM@Serializable
data class MyTest(val myTestNested: MyTestNested)
@Serializable
data class MyTestNested(val value: String? = "")
@Test
fun veryBasicTest() {
val content = """
<MyTest>
<MyTestNested>
<Value>Hello World</Value>
</MyTestNested>
</MyTest>
""".trimIndent()
val data = XML().decodeFromString(MyTest.serializer(), content)
println(data)
}
Here's an very basic example showing the same issue.Aleksei Tirman [JB]
10/19/2022, 7:57 AM