FasterXML / FasterXML/jackson-dataformats-text
Demultiplexer field
- Vorherrschende Sprache
- Java
- Sterne
- 455
- Forks
- 164
- Ø Merge
- 6 T. 10 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.