Can kotlin custom serializer be any help on decoding weird/invalid JSON? I could do this in Java with Gson using custom deserializer. The challenge is following (list of mixed objects - String, then Object) . I tried using official guide and wrote custom deserializer here too, however it produces error already in
Copy code
decoder.decodeStructure(descriptor)
n
Nikky
02/14/2021, 9:38 AM
decode rows as
List<JsonElement>
then decode each JsonElement depending on what it is
and i am pretty sure there is a way to turn this into a custom serializer as well