Class ListJsonWriter<T>

java.lang.Object
ru.tinkoff.kora.json.common.ListJsonWriter<T>
All Implemented Interfaces:
JsonWriter<List<T>>

public class ListJsonWriter<T> extends Object implements JsonWriter<List<T>>
  • Constructor Details

    • ListJsonWriter

      public ListJsonWriter(JsonWriter<T> writer)
  • Method Details

    • write

      public void write(com.fasterxml.jackson.core.JsonGenerator gen, @Nullable List<T> object) throws IOException
      Specified by:
      write in interface JsonWriter<T>
      Parameters:
      gen - jackson generator that will be used for writing object to JSON
      object - to serialize into JSON
      Throws:
      IOException - in case of serialization errors