Join Slack
Communities
Powered by
The only thing I want to serialize in the above is...
# serialization
c
Chris Fillmore
12/03/2020, 4:18 PM
The only thing I want to serialize in the above is the
headers
, which I can get from
toMap()
r
rnett
12/03/2020, 11:14 PM
Check out
https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#composite-serializer-via-surrogate
, I'd think using
Map<String, List<String>>
as the surrogate would work.
rnett
12/03/2020, 11:16 PM
https://github.com/Kotlin/kotlinx.serialization/issues/344
too, maybe leave a comment
c
Chris Fillmore
12/04/2020, 1:37 PM
Thanks for responding! I’ve moved on to another problem at the moment but when I return to this I’ll take a look
6
Views
Open in Slack
Previous
Next