code: @Override
      public void doSerialize( JsonWriter writer, byte[][] values, JsonSerializationContext ctx, JsonSerializerParameters params ) {
          if ( !ctx.isWriteEmptyJsonArrays() && values.length == 0 ) {
              writer.cancelName();
              return;
          }
  
          writer.beginArray();
          for ( byte[] array : values ) {
              writer.unescapeValue( Base64Utils.toBase64( array ) );
          }
          writer.endArray();
      }
docs: {@inheritDoc}