I'm building a `KSerializer` for a sealed classs w...
# serialization
p
I'm building a
KSerializer
for a sealed classs where the data comes in the following form in JSON:
Copy code
{
  "kind" : "user",
  "data" :  {
    ...
  }
}
I have a custom object extensing
SerialClassDescImpl
where I add the elements "kind" and "data". If I parse a json where the elements are in that order everything is good, but if they order is different it doesn't work. Any idea on how to solve this? As I need to read the kind before I can parse the data as the right implementation of the sealed class. 🤔