Sourced from org.jetbrains.kotlinx:kotlinx-serialization-json's releases.
1.11.0
This release is based on Kotlin 2.3.20 and provides a new Json exceptions API and some bugfixes and improvements.
Expose Json exceptions structure
To make working with exceptions easier and providing proper error codes in e.g., REST APIs, classes
JsonException,JsonDecodingException, andJsonEncodingExceptionare now public. They have relevant public properties, such asshortMessage,path,offset, and others. This API is currently experimental, and we're going to improve it further in the subsequent releases. See the linked issues for the details: #1930, #1877.Ability to hide user input from exception messages for security/privacy reasons.
Historically, exception messages in kotlinx.serialization often included the input Json itself for debuggability reason. Such behavior may pose additional challenges for logging, analytics, and other systems, since a system is not always allowed to store user data due to privacy/security reasons, which imposes additional sanitation logic. To address this issue, a new property
exceptionsWithDebugInfois added toJsonConfiguration. Disable it to hide user input from exception messages. IMPORTANT: This behavior will be enabled by default when this property becomes stable. See #2590 for more details.Bugfixes and improvements
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-json's changelog.
1.11.0 / 2026-04-10
This release is based on Kotlin 2.3.20 and provides new Json exceptions API and some bugfixes and improvements.
Expose Json exceptions structure
To make working with exceptions easier and providing proper error codes in e.g., REST APIs, classes
JsonException,JsonDecodingException, andJsonEncodingExceptionare now public. They have relevant public properties, such asshortMessage,path,offset, and others. This API is currently experimental, and we're going to improve it further in the subsequent releases. See the linked issues for the details: #1930, #1877.Ability to hide user input from exception messages for security/privacy reasons.
Historically, exception messages in kotlinx.serialization often included the input Json itself for debuggability reason. Such behavior may pose additional challenges for logging, analytics, and other systems, since a system is not always allowed to store user data due to privacy/security reasons, which imposes additional sanitation logic. To address this issue, a new property
exceptionsWithDebugInfois added toJsonConfiguration. Disable it to hide user input from exception messages. IMPORTANT: This behavior will be enabled by default when this property becomes stable. See #2590 for more details.Bugfixes and improvements
6956af2
Prepare 1.11 release390d84c
Merge remote-tracking branch 'origin/master' into dev431fe2d
Use local repo for publishing (#3171)05c12b6
Add usage attribute to "testRepositories" configurationa4e1f08
Bump Kover version to 0.9.8 release (#3174)304e858
Expose Json exceptions structure (#3145)4a0338e
Included G Play SDK verification file for core-jvm (#3169)421f64c
CBOR: Relax value range check when decoding numbers (#3167)85a4f12
KT-84955: mark apple x64 tagets as deprecated errorbd38b0e
Remove dead code