Class MapJsonWriter<T>

java.lang.Object
ru.tinkoff.kora.json.common.MapJsonWriter<T>
All Implemented Interfaces:
JsonWriter<Map<String,T>>

public class MapJsonWriter<T> extends Object implements JsonWriter<Map<String,T>>
  • Constructor Details

    • MapJsonWriter

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

    • write

      public void write(com.fasterxml.jackson.core.JsonGenerator gen, @Nullable Map<String,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