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

com.bazaarvoice.emodb.common.json.deferred.LazyJsonMapSerializer Maven / Gradle / Ivy

package com.bazaarvoice.emodb.common.json.deferred;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * Serializer for {@link LazyJsonMap}.  The serialization logic is contained in {@link LazyJsonMap#writeTo(JsonGenerator)};
 * this object merely satisfies the {@link JsonSerializer} class hierarchy.
 */
public class LazyJsonMapSerializer extends JsonSerializer {
    @Override
    public void serialize(LazyJsonMap lazyJsonMap, JsonGenerator generator, SerializerProvider provider)
            throws IOException, JsonProcessingException {
        lazyJsonMap.writeTo(generator);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy