🌐
GitHub
github.com › brudaswen › kotlinx-serialization-csv
GitHub - brudaswen/kotlinx-serialization-csv: Library to easily use Kotlin Serialization to serialize to/from CSV. · GitHub
// Kotlin Serialization CSV implementation("de.brudaswen.kotlinx.serialization:kotlinx-serialization-csv:3.2.1") // Kotlin Serialization is added automatically, but can be added to force a specific version implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.9.0")
Starred by 61 users
Forked by 17 users
Languages   Kotlin
Discussions

Kotlin kotlinx-serialization-csv multi array list - Stack Overflow
Does anyone know how to deserialize a csv containing multiarray list: Code, values 1234, [[11111, 22222], [44444, 99999]] More on stackoverflow.com
🌐 stackoverflow.com
Support for CSV
It would be nice if kotlinx.serialization supported csv files/ Currently I am using jackson-dataformat-csv for this purpose: https://github.com/FasterXML/jackson-dataformat-csv More on github.com
🌐 github.com
3
May 12, 2021
KotlinX Serialization - Alternative CSV format
I am not sure if the commented output is correct, as the readme suggests the list would be encoded as json. More on reddit.com
🌐 r/Kotlin
2
7
July 10, 2025
What the easiest way to parse xml in kotlin jvm
I personally like KotlinX Serialization. Here's an add-on for XML: https://github.com/rharter/kotlinx-serialization-xml Sticking with KotlinX Serialization means leveraging an official library and the ability to adopt (or translate) to other serialization formats. More on reddit.com
🌐 r/Kotlin
8
6
August 12, 2024
🌐
Maven Repository
mvnrepository.com › artifact › de.brudaswen.kotlinx.serialization › kotlinx-serialization-csv
Maven Repository: de.brudaswen.kotlinx.serialization » kotlinx-serialization-csv
Library to easily use Kotlin Serialization to serialize to/from CSV. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter testing tools ui war web webapp
🌐
Softwork
csv.softwork.app › kotlinx-serialization-csv › index.html
kotlinx-serialization-csv - modules
@Serializable data class Names(val firstName: String, val lastName: String) CSVFormat { separator = ';' alwaysEmitQuotes = true }.decodeFromString(Names.serializer(), csv)
🌐
Softwork
csv.softwork.app
kotlinx-serialization-csv-flf
Serialize and deserialize ordered CSV and Fixed Length Format Files with kotlinx-serialization.
🌐
SSOJet
ssojet.com › serialize-and-deserialize › serialize-and-deserialize-csv-in-kotlin
Serialize and Deserialize CSV in Kotlin | Serialize and Deserialize Data in Programming Languages
December 13, 2025 - For instance, if your data uses semicolons (;) instead of commas and encloses fields with double quotes ("), you'd typically set these options in your CSV parser. In kotlinx-serialization-csv, this is managed via CsvConfiguration:
🌐
GitHub
github.com › brudaswen › kotlinx-serialization-csv › releases
Releases · brudaswen/kotlinx-serialization-csv
Last line in CSV is always ignored when empty. Throws SerializationException instead of IllegalStateException in case of error.
Author   brudaswen
🌐
GitHub
github.com › lightningkite › kotlinx-serialization-csv-durable
GitHub - lightningkite/kotlinx-serialization-csv-durable: Use CSVs with KotlinX serialization with a higher level of compatibility.
// Complex fields can be encoded OR be split across columns. val result = csv.decodeFromString<List<Vehicle>>(""" year,make,model,trim,owner.name,owner.email,packages,packages.0,packages.1,packages.2,owner 1990,Saturn,SL2,Trim,Owner Man,ownerman@gmail.com,,A,B,C, 1991,Saturn,SL2,Unowned,,,,A,,, 1992,Saturn,SL2,null,,,,,,, 1993,Saturn,SL2,Trim,Owner Man,ownerman@gmail.com,"%[""A"",""B"",""C""]",,,, 1994,Saturn,SL2,Unowned,,,"%[""A""]",,,, 1995,Saturn,SL2,null,,,%[],,,, """.trimIndent()).also(::println) assertEquals(listOf( Vehicle(1990, "Saturn", "SL2", "Trim", OwnerInfo("Owner Man", "ownerman@
Author   lightningkite
🌐
GitHub
github.com › hfhbd › kotlinx-serialization-csv
GitHub - hfhbd/kotlinx-serialization-csv: CSV and FixedLength Formats for kotlinx-serialization
Serialize and deserialize ordered CSV and Fixed Length Format Files with kotlinx-serialization.
Author   hfhbd
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 71296725 › kotlin-kotlinx-serialization-csv-multi-array-list
Kotlin kotlinx-serialization-csv multi array list - Stack Overflow
Does anyone know how to deserialize a csv containing multiarray list: Code, values 1234, [[11111, 22222], [44444, 99999]]
🌐
Maven Central
central.sonatype.com › artifact › de.brudaswen.kotlinx.serialization › kotlinx-serialization-csv
kotlinx-serialization-csv - Maven Central
--> <!-- do_not_remove: published-with-gradle-metadata --> <modelVersion>4.0.0</modelVersion> <groupId>de.brudaswen.kotlinx.serialization</groupId> <artifactId>kotlinx-serialization-csv</artifactId> <version>3.2.1</version> <name>kotlinx-serialization-csv</name> <description>Library to easily use Kotlin Serialization to serialize to/from CSV.</description> <url>https://github.com/brudaswen/serialization-csv/</url> <licenses> <license> <name>Apache License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <id>brudaswen
🌐
GitHub
github.com › Kotlin › kotlinx.serialization › issues › 1476
Support for CSV · Issue #1476 · Kotlin/kotlinx.serialization
May 12, 2021 - It would be nice if kotlinx.serialization supported csv files/ Currently I am using jackson-dataformat-csv for this purpose: https://github.com/FasterXML/jackson-dataformat-csv
Author   Kotlin
🌐
Reddit
reddit.com › r/kotlin › kotlinx serialization - alternative csv format
r/Kotlin on Reddit: KotlinX Serialization - Alternative CSV format
July 10, 2025 -

I was disappointed by existing CSV parsing libraries, so we built our own and I figure it's time to start seeing if we can help someone else with the work we've done.

This CSV encoder/decoder features sequence streaming and has (AFAIK) total support for KotlinX Serialization via fallback formats - in other words, if KotlinX serialization can serialize it, it will work with this format in both directions.

We used it as part of a generic admin panel for backends. Hopefully it could be helpful to someone else!

🌐
MojoAuth
mojoauth.com › serialize-and-deserialize › serialize-and-deserialize-csv-with-ktor
Serialize and Deserialize CSV with Ktor | Serialize & Deserialize Data Across Languages
December 17, 2025 - For incoming data, Ktor's content negotiation can be set up with a custom CSV converter to deserialize incoming lists of objects directly. Conversely, when sending CSV back, you'll serialize your data and set the Content-Type to text/csv. Consider this example for handling user uploads and exports:
🌐
Maven Central
central.sonatype.com › artifact › app.softwork › kotlinx-serialization-csv
kotlinx-serialization-csv - app.softwork - Maven Central
--> <!-- do_not_remove: published-with-gradle-metadata --> <modelVersion>4.0.0</modelVersion> <groupId>app.softwork</groupId> <artifactId>kotlinx-serialization-csv</artifactId> <version>0.0.23</version> <name>app.softwork CSV and FLF kotlinx.serialization</name> <description>A multiplatform Kotlin CSV and FLF kotlinx.serialization library</description> <url>https://github.com/hfhbd/kotlinx-serialization-csv</url> <licenses> <license> <name>Apache-2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <id>hfhbd</id> <name>Philip Wed
🌐
Compile7
compile7.org › serialize-and-deserialize › how-to-serialize-and-deserialize-csv-in-kotlin
How to Serialize and Deserialize CSV in Kotlin | Serialization & Deserialization across Programming Languages
When your Kotlin data classes include non-primitive types or nested structures, you'll need a strategy to represent them within the flat structure of a CSV. This typically involves flattening complex fields into a single, delimited string during serialization and then parsing that string back into its original form during deserialization.
🌐
MojoAuth
mojoauth.com › serialize-and-deserialize › serialize-and-deserialize-csv-with-kotlin
Serialize and Deserialize CSV with Kotlin | Serialize & Deserialize Data Across Languages
Handling CSV data in applications often involves tedious manual parsing, which is error-prone and time-consuming. This guide shows you how to efficiently serialize Kotlin data classes into CSV format and deserialize CSV strings back into Kotlin objects. You'll learn to leverage libraries like OpenCSV or Apache Commons CSV, enabling robust data handling with minimal boilerplate code.
🌐
Kotlin
kotlinlang.org › docs › serialization.html
Serialization | Kotlin Documentation
June 16, 2026 - Kotlin serialization supports various serialization formats, such as JSON, CBOR, and Protocol buffers through different serialization format libraries. These libraries build on the core kotlinx.serialization library.
🌐
Maven Repository
mvnrepository.com › artifact › io.github.nistix › kotlinx-serialization-csv
Maven Repository: io.github.nistix » kotlinx-serialization-csv
Serialize and deserialize CSV with kotlinx-serialization. ... aar android apache api application arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript kotlin library logging maven mobile ...