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

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 28

  • @GakisStylianos
    @GakisStylianos 3 года назад +15

    These videos never get boring. Thank you Seb and your team, you are really doing a great job!

  • @henninghoefer
    @henninghoefer 3 года назад +1

    This video is awesome. Somewhere between a release announcement and a 5-minute tutorial - perfect for me (who has only used Jackson for my serialization until now).

  • @reach6414
    @reach6414 3 года назад +3

    The Github docs are a pleasure to work with. It's super easy to find what I'm looking for or to explore the library. Good job 👍

  • @danielhmorgan
    @danielhmorgan 3 года назад

    I was glad about 1.5 already; serialization 1.2 is absolutely icing on the cake; thank you, JetBrains

    • @PauldeVrieze
      @PauldeVrieze 3 года назад

      Both have actually been available for at least 9 days now (I updated the Xml format then)

  • @noraltavir
    @noraltavir 3 года назад +2

    Json schema generation would also be nice.

  • @valour.se47
    @valour.se47 3 года назад

    Love the ProtoBuff Schema generation , great improvements

  • @jessehill4658
    @jessehill4658 3 года назад

    This was such a useful video! Thank you!

  • @vitaliiplagov
    @vitaliiplagov 3 года назад

    I plan to replace Gson with kotlinx-serialization in my work project soon.

  • @raphaeltarita5187
    @raphaeltarita5187 3 года назад +1

    Does this update introduce breaking changes for custom format implementations?

    • @PauldeVrieze
      @PauldeVrieze 3 года назад +2

      It depends. For XML I had to add a function implementation to my implementation of SerializersModuleCollector. Most simpler formats will not use that.

  • @pixelPlex
    @pixelPlex 3 года назад

    Are there any performance benchmarks for the Kotlin Native version (eg the linuxX64 target) of the KotlinX Serialization library?

  • @pixelPlex
    @pixelPlex 3 года назад

    Is there a system provided by KotlinX Serialization where one can easily add support for a custom binary serialization format? It is very common in Embedded/IoT development for projects to use a custom binary serialization format.

    • @ahmedmourad1683
      @ahmedmourad1683 3 года назад +2

      Yes, you can create your own custom format:
      github.com/Kotlin/kotlinx.serialization/blob/master/docs/formats.md
      I've also created one a while ago that serializes to/from Android's Bundles, you can check out the source code here:
      github.com/AhmedMourad0/bundlizer
      Android's Bundles are a like a Map or a list of key/value pairs .. which is not something the docs show how to implement a format for, AFAIK.

    • @pixelPlex
      @pixelPlex 3 года назад +1

      @@ahmedmourad1683 - The referenced documentation is very useful. For some strange reason I cannot middle click on the link. RUclips - Can you please provide "proper" links where a user can middle click on a link to open it in a new tab.

  • @boggledorf
    @boggledorf Год назад

    If you type this in you get "unresolved reference: serialization". Mayhaps you forgot to include some information.

  • @pixelPlex
    @pixelPlex 3 года назад

    Hold on unsigned numeric data types were already available in Kotlin 1.4.

    • @Trecoolerok
      @Trecoolerok 3 года назад

      They were experimental afaik

  • @kamaukenn7101
    @kamaukenn7101 3 года назад

    Kotlinx is awsome i have been using it in production however I would love for on feature to be added, if you have a map this cannot be json encoded because of multiple types.probably this could be added and to activate it you would need something like a compiler flag.

  • @김삿갓-z4q
    @김삿갓-z4q 2 года назад

    what font name? please

  • @samstoyroom
    @samstoyroom 3 года назад

    Replacement of Kotlin Parcelable?

    • @GakisStylianos
      @GakisStylianos 3 года назад

      Parcelable is for Android specifically that works with parcels right? Doesn't compete with this, it's a different thing I think.

    • @PauldeVrieze
      @PauldeVrieze 3 года назад

      I don't think that there is one, but it would be easy to write (mostly). I might have a go.

    • @ahmedmourad1683
      @ahmedmourad1683 3 года назад +1

      You can't create a direct replacement of Android's Parcelable .. since you need the class to implement Parcelable to serialize/deserialize it, you might as well just use @Parcelize.
      However, I have released a Bundle serializer/deserializer a while ago, which does the job:
      github.com/AhmedMourad0/bundlizer

  • @zhimbura
    @zhimbura 3 года назад

    Завтра проверю производительность -_-

  • @donwald3436
    @donwald3436 2 года назад

    haha prython