Class JsonSchemaConverter
- java.lang.Object
-
- com.networknt.kafka.common.converter.JsonSchemaConverter
-
- All Implemented Interfaces:
SchemaConverter
public final class JsonSchemaConverter extends Object implements SchemaConverter
Provides conversion of JSON to/from JSON Schema.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.networknt.kafka.common.converter.SchemaConverter
SchemaConverter.JsonNodeAndSize
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaConverter.JsonNodeAndSizetoJson(Object value)Converts JSON Schema data to their equivalent JsonNode representation.
-
-
-
Method Detail
-
toJson
public SchemaConverter.JsonNodeAndSize toJson(Object value)
Converts JSON Schema data to their equivalent JsonNode representation.- Specified by:
toJsonin interfaceSchemaConverter- Parameters:
value- the value to convert- Returns:
- an object containing the root JsonNode representing the converted object and the size in bytes of the data when serialized
-
-