pablisco
10/20/2018, 12:30 AMKSerializer for a sealed classs where the data comes in the following form in JSON:
{
"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.
🤔