Is there any more compact way of configuring JSon ...
# serialization
r
Is there any more compact way of configuring JSon with these settings
Copy code
serializer = KotlinxSerializer(
                Json {
                    isLenient = true
                    ignoreUnknownKeys = true
                    useArrayPolymorphism = true
                }
            )
t
Do you mean number of lines? You could do this:
Copy code
serializer = KotlinxSerializer(
                Json {
                    isLenient = true; ignoreUnknownKeys = true; useArrayPolymorphism = true
                }
            )
r
no, more in terms of some default way of writing this without specifying all those settings. Like some “relaxed” mode
l