FasterXML / FasterXML/jackson-dataformats-text

Demultiplexer field

Open
#126 3 comments 0 reactions 0 assignees View on GitHub
csv
Dominant language
Java
Stars
455
Forks
164
Avg merge
6d 10h
Merged PRs (30d)
2

Description

Hi,

It's a common scenario in CSV files to have a demultiplexer field like:

```java
class RowObject {
public String f1;
public String f2;
public List f3demux;
public String f4;
}

var myExample = new RowObject();
myExample.f1 = "a";
myExample.f2 = "b";
myExample.f3demux = List.of("c1", "c2", "c3");
myExample.f4 = "d";
```

should be mapped like:

```csv
f1, f2, f3demux, f4
a , b, c1, d
a , b, c2, d
a , b, c3, d
```

is there any way to make this happen in `jackson-dataformat-csv`
Having an object that is actually mapped to many rows?

Didn't find any examples or documentation on this matter
Thanks in advance! Great library

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.