https://kotlinlang.org logo
c

Chris Fillmore

12/03/2020, 4:15 PM
Hi everyone, apologies if this has an easy answer but I haven’t spotted it yet. I’m trying to serialize a type that is basically a wrapper around
Map<String, List<String>>
It holds HTTP headers. I just want to serialize the map to JSON. I am looking at a custom serializer but this seems a roundabout way. Or can my serializer just delegate to a serializer that handles Maps?