code: protected boolean handleCustomTypeToJson(TypedElementDefinition<?> column, String getter, String columnType, String javaMemberName, JavaWriter out) {
          return false;
      }
docs: Overwrite this method to handle your custom type. This is needed especially when you have custom converters.
  @param column the column definition
  @param getter the getter name
  @param columnType the type of the column
  @param javaMemberName the java member name
  @param out the JavaWriter
  @return <code>true</code> if the column was handled.
  @see #generateToJson(TableDefinition, JavaWriter, org.jooq.codegen.GeneratorStrategy.Mode)