jackson-dataformats-text
jackson-dataformats-text copied to clipboard
csv; how to modify the decimal separator?
There's an issue in the archived repo on this. I already checked the API docs. However, I did not find a way to change the decimal separator other than annotating my POJO or modifying its getters. The latter is what I have currently implemented.
Is there another way to change the decimal mark? I am not very familiar w/ the API.
I create an ObjectWriter like this:
CsvMapper mapper = new CsvMapper();
CsvSchema schema = mapper
.typedSchemaFor(MyPojo.class)
.withColumnReordering(true);
ObjectWriter csvWriter = mapper
.writerWithSchemaFor(MyPojo.class)
.with(schema);
There is unfortunately no way to currently change number separators: serialization only uses decimal point.
okay. thank you for your quick feedback.