Code Monkey home page Code Monkey logo

kotlinx-serialization-csv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kotlinx-serialization-csv's Issues

Custom headers

Is there a way to customize headers? Don't like saying this but perhaps with a custom annotation? :)

Inline/Value class property name included in header

Given a value class, and some data class to represent the CSV contents:

@JvmInline
@Serializable
value class MyId(val value: String)

@Serializable
data class Entry(
  @SerialName("my_id") val id: MyId,
  @SerialName("my_content") val content: String,
)

this will correctly decode the following CSV

my_id, my_content
A, A Test
B, B Test

but when serializing a list of Entry objects, the column name for Entry.id includes the value property from the MyId class.

my_id.value, my_content
A, A Test
B, B Test

The value/inline class's property should be serialized directly without the hierarchical property name.

Support Kotlin Multiplatform

It would be great to support Kotlin Multiplatform, so it would be possible to use not only on JVM

I checked, it already works on multiplatform module just fine, so the only missing part is publishing for MPP

kotlinx-serialization 0.20.0 support?

Unfortunately 0.14.0 is no longer compatible with more recent versions of Kotlin. I took a quick stab at porting the code, besides API changes it seems like there were some behavioural changes as well - have you taken a look yet?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.