Changing it to this works: ``` fun deserialize(...
# announcements
g
Changing it to this works:
Copy code
fun deserialize(text: String) : Any {

        // This code is part of a configuration deserializer; isList is a Boolean defined on the same class
        if (isList) {
            return reader.readValues<Any>(text).readAll()
        }
        else {
            return reader.readValue(text)
        }
    }