filmov
tv
kotlinx.serialization 1.2.0: Faster JSON Handling, Value Classes, API Docs & More

Показать описание
The event will feature a live Q&A session with the Kotlin team.
🗓 May 25, 2021 16:00 – 17:30 CEST
00:00 Overview
00:25 Intro
00:33 When do we need serialization?
01:32 Performance upgrades in 1.2.0
02:10 Learning Materials & New API Documentation
03:07 Serializing value classes
04:15 Serializing unsigned integer types
04:55 Alternative Names for JSON fields
05:41 Experimental Protobuf Schema Generator
07:18 Time for feedback
07:27 Summary
We learn about how to transform Kotlin objects to JSON and back faster than ever before, even when using Kotlin Multiplatform – just by upgrading to version 1.2.0! It is up to twice as fast as previous versions when parsing JSON into type-safe Kotlin objects, and turning Kotlin objects into their text representations. The magic behind this performance upgrade? A rewritten JSON decoder (responsible for turning text into Kotlin objects), and a significantly optimized JSON encoder (responsible for turning Kotlin objects into text).
For JSON fields that have different names but the same meaning, for example to maintain backwards compatibility, we explore the new @JsonNames annotation. We see how using it makes it easier to work with services that return differently named fields representing the same values, survive schema migrations, and provide graceful upgrades for applications.
We also explore the all-new API documentation, which has an overhauled design, and symbols that make it easy to navigate through the reference docs.
Support for Protocol Buffers, the binary serialization format from Google, gets expanded, with an experimental schema generator. We learn about the new principles for generating `.proto` files from your Kotlin data classes, which allow us to generate representations of the communication format in other languages, including Python, C++, TypeScript, and many more.
#kotlin #serialization #json #protobuf #libraries #android #jvm #webdev
🗓 May 25, 2021 16:00 – 17:30 CEST
00:00 Overview
00:25 Intro
00:33 When do we need serialization?
01:32 Performance upgrades in 1.2.0
02:10 Learning Materials & New API Documentation
03:07 Serializing value classes
04:15 Serializing unsigned integer types
04:55 Alternative Names for JSON fields
05:41 Experimental Protobuf Schema Generator
07:18 Time for feedback
07:27 Summary
We learn about how to transform Kotlin objects to JSON and back faster than ever before, even when using Kotlin Multiplatform – just by upgrading to version 1.2.0! It is up to twice as fast as previous versions when parsing JSON into type-safe Kotlin objects, and turning Kotlin objects into their text representations. The magic behind this performance upgrade? A rewritten JSON decoder (responsible for turning text into Kotlin objects), and a significantly optimized JSON encoder (responsible for turning Kotlin objects into text).
For JSON fields that have different names but the same meaning, for example to maintain backwards compatibility, we explore the new @JsonNames annotation. We see how using it makes it easier to work with services that return differently named fields representing the same values, survive schema migrations, and provide graceful upgrades for applications.
We also explore the all-new API documentation, which has an overhauled design, and symbols that make it easy to navigate through the reference docs.
Support for Protocol Buffers, the binary serialization format from Google, gets expanded, with an experimental schema generator. We learn about the new principles for generating `.proto` files from your Kotlin data classes, which allow us to generate representations of the communication format in other languages, including Python, C++, TypeScript, and many more.
#kotlin #serialization #json #protobuf #libraries #android #jvm #webdev
Комментарии