Join Slack
Why is `allowStructuredMapKeys`<https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serializati...
# serialization
e
Erik
10/31/2022, 8:39 AM
Why is `allowStructuredMapKeys`
(docs)
false
by default? Is it because serializing a map to an array is non-standard behaviour? And throwing an exception (if
false
) is standard behaviour?
j
jw
10/31/2022, 3:21 PM
The JSON spec only allows strings as object keys, yes.
6
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by