Class CsvCellSerializer

java.lang.Object
org.apache.juneau.marshall.csv.CsvCellSerializer

public final class CsvCellSerializer extends Object
Serializes nested objects and arrays to CSV cell inline notation: {key:val;key2:val2} and [val1;val2;val3].

Used when allowNestedStructures() is enabled on the serializer.

  • Constructor Details

  • Method Details

    • write

      public String write(Object value, CsvSerializerSession session)
      Serializes a value to inline notation.
      Parameters:
      value - The value to serialize.
      Can be null (serialized as the null marker).
      session - The serializer session (for bean conversion, date formatting, etc.).
      Must not be null.
      Returns:
      The serialized string.