jw
07/27/2020, 3:21 PMnrobi
07/28/2020, 6:27 AM1.0-M1-1.4.0-rc
serialization-runtime-native
and runtime-common
in WIP or should we expect any updates any time soon?gsala
07/29/2020, 4:09 PM@JsonUnwrapped
in Jackson, with kotlinx.serialization?efemoney
07/31/2020, 11:42 AM@Serializable
data class ServiceImpl(
override val id: String,
override var name: String = id.capitalize(Locale.ROOT),
override var logoUrl: String? = null,
override var logoHasText: Boolean = false,
override var brandColor: Int = "#FFFFFF".toColor(),
override var brandAccentColor: Int = "#3F51B5".toColor(),
override var country: Country = Countries.findByCountryCode(Locale.ROOT.language) ?: <http://Countries.NG|Countries.NG>,
override var actions: ActionContainerImpl = ActionContainerImpl(),
) : Service
Error
Failed to generate expression: KtNameReferenceExpression
Caused by: java.lang.UnsupportedOperationException: Don't know how to generate outer expression: Class: class ServiceImpl
Daniele B
08/07/2020, 4:17 PM@Serializable
data class ApiResponse(
@SerialName("data") val data : List<Row>,
@SerialName("err") val error : String,
)
Daniele B
08/07/2020, 4:17 PMNikky
08/09/2020, 7:23 PMKarlo Lozovina
08/13/2020, 2:02 PMursus
08/17/2020, 3:43 AMVsevolod Tolstopyatov [JB]
08/17/2020, 6:09 PM1.0.0-RC
release!
The library overcame quite a few changes during the last releases. We carefully revisited each public declaration and in 1.0.0-RC we finally reached the stable ground and stabilized most of the essential API.
This is a serious milestone and it wouldn’t be possible without you, the community ❤️
Thanks to all of you for the feedback, questions, concerns, slack discussions and fearless adoption of the unstable library!
Short overview: https://kotlinlang.org/docs/reference/serialization.html
Changelog: https://github.com/Kotlin/kotlinx.serialization/releases/tag/1.0.0-RC
Serialization guide by example: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serialization-guide.mdandylamax
08/17/2020, 10:51 PMkotlinx.serialization
looks so ready. If it were up to me, This would have been a 1.0.0
but maybe that's why @Vsevolod Tolstopyatov [JB] is at JB and I am at home. Nice work to all contributors. You have nailed this oneNicolas Bourdin
08/18/2020, 11:17 AMYour current kotlinx.serialization core version is too low, while current Kotlin compiler plugin 1.4.0 requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.
Any idea please ? Thanks in advanceNikky
08/18/2020, 4:28 PMTwoClocks
08/18/2020, 6:49 PMRobert Jaros
08/18/2020, 8:31 PMagu
08/18/2020, 9:13 PMencodeDefaults = false
it's not an option. Is there a workaround? If not (else haha), what library would you recommend (that DOESN'T use reflection)?andylamax
08/19/2020, 1:10 AMLong
data type, just for safety sake, should by default be serialized as string. Because when you decided to use a Long
you are certain of operating beyond the realms of a normal Int
rrva
08/19/2020, 12:34 PMYour current kotlinx.serialization core version is too low, while current Kotlin compiler plugin 1.4.0 requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency
My build.gradle:
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC"
}
and
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.4.0'
}
rrva
08/19/2020, 12:35 PMAndrei Marshalov
08/21/2020, 9:39 AMkotlinx.serialization
for my Kotlin/MPP project with Android
, iOS
and macOS
targets. I’ve implemented this example and got an error kotlinx.serialization.SerializationException: Serializer for class 'Project' is not found
for all Native targets, on Android it works fine. I created an issue on github, but it’ll take some time before it will be responded, so I’m wondering if any have the same problem and can share any workaround.
Thank you!Luoqiaoyou
08/23/2020, 3:52 AMfun JsonObject.put(key: String, value: Long) {
(content as MutableMap).put(key, JsonPrimitive(value))
}
but in Kotlin 1.4.0, content
is privateMichael
08/25/2020, 12:27 PMMichael
08/25/2020, 12:28 PMMichael
08/25/2020, 12:28 PMdata class RestResponse<T>(val data: T, val meta: Metadata)
Michael
08/25/2020, 12:29 PMKarlo Lozovina
08/25/2020, 12:56 PMCommand
but keep the single encode
function?Karlo Lozovina
08/25/2020, 12:56 PMrrva
08/28/2020, 9:19 AMChris Fillmore
09/01/2020, 12:18 AMspand
09/03/2020, 6:50 AM