Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Add SerializationFeature to Serialize Objects with toString() method #158

Open
@joseaio

Description

@joseaio

I can't find anything as this...

This Feature enables a default serialization (for Objects) calling their toString() method instead of launch error:

com.fasterxml.jackson.databind.JsonMappingException: CSV generator does not support Object values for properties (through reference chain: java.util.ArrayList[0]->***)
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:275)
at com.fasterxml.jackson.dataformat.csv.CsvGenerator._reportMappingError(CsvGenerator.java:912)
at com.fasterxml.jackson.dataformat.csv.CsvGenerator.writeStartObject(CsvGenerator.java:522)
at com.fasterxml.jackson.core.base.GeneratorBase.writeStartObject(GeneratorBase.java:274)
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:151)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions