I need to deserialize a List<String> into a Map<St...
# serialization
b
I need to deserialize a ListString into a MapString, SomeDataClass; afaik I need a delegating serializer, but what would I use for ListString; JsonArraySerializer?; in addition I don't quite get what the serialName parameter is being used for in SerialDescriptor(...); is that just a globally unique id of that serializer?
✅ 1
ListSerializer(String.serializer()) I guess?
c
ListSerializer(String.serializer()) I guess?
yes
is that just a globally unique id of that serializer?
yes
b
thank you ivan
e
Copy code
serializer<List<String>>()
should also work, but I worry about errors not being caught at compile time so I also use
ListSerializer(String.serializer())
b
I see, thank you