https://kotlinlang.org logo
#serialization
Title
# serialization
d

dave08

10/12/2023, 3:22 PM
I'm getting
kotlinx.serialization.SerializationException: Class 'TreeSet' is not registered for polymorphic serialization in the scope of 'SortedSet'.
what can I do about this? It's after I use
.toSortedSet()
on a set... I just really want to keep the sorted order of the set, can I just do
Iterable.toSortedSet().toList()
on it and get the same result, or is there a better/more efficient way?
2 Views