com.buyexpressly.api.util.LocalDateIso8601DateSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-sdk Show documentation
Show all versions of plugin-sdk Show documentation
Expressly Java SDK to integrate e-commerce platforms with the Expressly Network API
package com.buyexpressly.api.util;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;
import org.joda.time.LocalDate;
import java.io.IOException;
public class LocalDateIso8601DateSerializer extends JsonSerializer {
@Override
public void serialize(LocalDate value, JsonGenerator generator, SerializerProvider serializer) throws IOException {
generator.writeString(value.toString());
}
}