@Override
            public JsonNode toJson(final Schema schema, final Object value, final JsonConverterConfig config) {
                if (!(value instanceof java.util.Date))
                    throw new DataException("Invalid type for Time, expected Date but was " + value.getClass());
                return JSON_NODE_FACTORY.numberNode(Time.fromLogical(schema, (java.util.Date) value));
            }
Implementation of {@link Converter} and {@link HeaderConverter} that uses JSON to store schemas and objects. By
default this converter will serialize Connect keys, values, and headers with schemas, although this can be disabled with
the {@link JsonConverterConfig#SCHEMAS_ENABLE_CONFIG schemas.enable} configuration option.
<p>
This implementation currently does nothing with the topic names or header keys.
connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java