• pajatopmr

    pajatopmr

    2 years ago
    If memory serves, when using Kotlin serialization with KMP, I had to tell Gradle that I was using "experimental" features. Is this still necessary with Kotlin 1.4.0 code that is JVM (not KMP)? When I enable the serialization plugin, all dependencies are colored red in IntelliJ with no clear error message. A pointer to a working sample Kotlin/JVM app using 1.4.0 serialization in a Kotlin DSL gradle file would be very helpful.
    pajatopmr
    Nikky
    4 replies
    Copy to Clipboard
  • h

    hiperbou

    2 years ago
    Hello, I updated kotlinx.serialization to 1.0.0-RC and this code that used to work on 0.9.1, now throws an error. It seems caused by the "id" property being used in the default initializer of the "otherData" property.
    @Serializable
    data class OtherData(val id:String)
    
    @Serializable
    data class MyData(val id: String = "", val otherData: OtherData = OtherData(id))
    h
    1 replies
    Copy to Clipboard
  • r

    rrva

    2 years ago
    it would be nice to have a mode where you can run kotlin 1.4 plugin but work with old codebases
    r
    Jeremy
    3 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    Is streaming comming?
    u
    1 replies
    Copy to Clipboard
  • Chris Fillmore

    Chris Fillmore

    2 years ago
    Hi everyone, maybe this is a dumb question but suppose I do this:
    @Serializable
    data class MyClass(val myProp: String, private val myPrivateProp: String)
    does
    myPrivateProp
    get serialized?
    Chris Fillmore
    m
    +1
    13 replies
    Copy to Clipboard
  • n

    Nicolas Bourdin

    2 years ago
    Hello, I've updated my kotlin version to 1.4 and kotlinx serialization to 1.0.0-RC And i get the following error when i try to build for ios Compilation failed: IrPropertyPublicSymbolImpl for public kotlinx.serialization.internal/EMPTY_SERIALIZER_ARRAY|-1756714926106261760[0] is already bound: PROPERTY name:EMPTY_SERIALIZER_ARRAY visibility:internal modality:FINAL [val] Any idea ? Thanks
    n
    1 replies
    Copy to Clipboard
  • e

    Evan

    2 years ago
    I just updated to Kotlin 1.4 and serialization 1.0.0-RC in my KMM project and I’m getting the error:
    Compilation failed: Deserializer for declaration public kotlinx.coroutines/SingleThreadDispatcher|null[0] is not found
    Does this look familiar to anyone? EDIT: I reverted back to 0.20.0 and have the same issue
    e
    1 replies
    Copy to Clipboard
  • tim

    tim

    2 years ago
    Hi all, i'm starting a new project and considering kotlinx.serialization over jackson which I am using currently. The project is microservices-based so restful and graphql endpoints which have a decent throughput level (1 request per second average). I understand that kotlinx.serialization is nearly 1.0.0 and was curious on anyone else experiences good or bad/would you recommend a move to kotlinx.serial from jackson? Thanks for your thoughts in advance 🙏
    tim
    e
    +5
    26 replies
    Copy to Clipboard
  • t

    Tmpod

    2 years ago
    Hey! I'm trying to write a custom decoder for a little argument parsing thing I'm working on and it's going all good, except that I can't seem to figure out a way to make enums case insensitive. The thing is that
    decodeEnum
    is given a string that it should try to match to a enum value index, but
    SerialDescriptor#getElementIndex
    doesn't seem to have any way to do a case insensitive lookup. Any ideas how I might achieve this?
    t
    1 replies
    Copy to Clipboard
  • o

    Ovsyannikov Alexey

    2 years ago
    Hello, I have faced with problem on JS Browser target. It is very strange, but all serial formats can't decode data which were incoded by themself. The most strangest here that I have created tests which should represent this issue, but they was correctly passed. I have tried to encode bytearra with cbor. Serializer was
    ListSerializer
    with data class subserializer, which have one custom serializer in it. As a result on trying to decode encoded bytearray I got error like
    Expected array, but found 00
    . I have tried to find some known issue on github or in the google, but didn't find it. Maybe, somebody here faced this too and could help me?
    o
    Nikky
    +2
    17 replies
    Copy to Clipboard