Ayfri
04/18/2022, 10:08 PMoverride fun transformSerialize(element: JsonElement): JsonElement {
require(element is JsonArray) // this serializer is used only with lists
return element.singleOrNull() ?: element
}
Which is the exact code from the documentation but I'm getting nothing when there's one string and an array if multiple, what I'm doing wrong 🤔Ayfri
04/19/2022, 3:30 AM