Can kotlin custom serializer be any help on decodi...
# serialization
a
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
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
a
Thanks, this looks like a way out