All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.optionfactory.spring.time.jackson.adapters.ZoneIdAsIdString Maven / Gradle / Ivy

There is a newer version: 13.0
Show newest version
package net.optionfactory.spring.time.jackson.adapters;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.time.ZoneId;

public class ZoneIdAsIdString extends JsonSerializer {

    @Override
    public void serialize(ZoneId value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        gen.writeString(value.toString());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy