Class JSONObjectSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
io.confluent.kafka.schemaregistry.json.jackson.JSONObjectSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.jsonschema.SchemaAware,Serializable
public class JSONObjectSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodebooleanisEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, org.json.JSONObject value) voidserialize(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider) protected voidserializeContents(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider) voidserializeWithType(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Field Details
-
instance
-
-
Constructor Details
-
JSONObjectSerializer
public JSONObjectSerializer()
-
-
Method Details
-
isEmpty
public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, org.json.JSONObject value) - Overrides:
isEmptyin classcom.fasterxml.jackson.databind.JsonSerializer<org.json.JSONObject>
-
serialize
public void serialize(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer<org.json.JSONObject>- Throws:
IOException
-
serializeWithType
public void serializeWithType(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException - Overrides:
serializeWithTypein classcom.fasterxml.jackson.databind.JsonSerializer<org.json.JSONObject>- Throws:
IOException
-
getSchema
public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider, Type typeHint) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
getSchemain interfacecom.fasterxml.jackson.databind.jsonschema.SchemaAware- Overrides:
getSchemain classcom.fasterxml.jackson.databind.ser.std.StdSerializer<org.json.JSONObject>- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
serializeContents
protected void serializeContents(org.json.JSONObject value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Throws:
IOException
-