Skip to content

Conversation

@mbarta
Copy link
Collaborator

@mbarta mbarta commented Apr 22, 2025

This PR adds two small (backwards-compatible) improvements to the default KotlinX Serialization implementation:

  • possibility to provide a custom Json instance through KotlinXJsonConverter's constructor (for providing custom options)
  • adding encodeDefaults = true as default which ensures default parameter values are not ignored for serialization (even though this is the default we most probably always want, this change should be noted in release notes)

@mbarta mbarta requested review from jayohms and jhutarek April 22, 2025 11:29
@mbarta mbarta self-assigned this Apr 22, 2025
Copy link
Contributor

@jayohms jayohms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change, thanks!

@jayohms jayohms merged commit 9f1b1ac into main Apr 22, 2025
1 check passed
@jayohms jayohms deleted the mb/kotlinx-serialisation-improvements branch April 22, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants