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

org.codehaus.jackson.map.JsonSerializable Maven / Gradle / Ivy

Go to download

Data Mapper package is a high-performance data binding package built on Jackson JSON processor

There is a newer version: 1.9.13
Show newest version
package org.codehaus.jackson.map;

import java.io.IOException;

import org.codehaus.jackson.*;

/**
 * Interface that can be implemented by objects that know how to
 * serialize themselves to JSON, using {@link JsonGenerator}
 * (and {@link SerializerProvider} if necessary).
 *

* Note that implementing this interface binds implementing object * closely to Jackson API, and that it is often not necessary to do * so -- if class is a bean, it can be serialized without * implementing this interface. *

* NOTE: as of version 1.5, this interface is missing one crucial * aspect, that of dealing with type information embedding. * Because of this, this interface is deprecated, although will be * fully supported for all 1.x releases, and will work except for * cases where polymorphic type information handling is needed for * type (in which case implementing if {@link JsonSerializableWithType} is crucial). * * @see org.codehaus.jackson.map.JsonSerializableWithType * * @since 1.5 * @deprecated Use {@link JsonSerializableWithType} instead */ @Deprecated public interface JsonSerializable { public void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy