@Udf
  public <T> String toJsonString(@UdfParameter final T input) {
    return toJson(input);
  }
@Test
  public void shouldSerializeTimestamp() {
    // When:
    final String result = udf.toJsonString(SqlTimeTypes.parseTimestamp("2022-01-20T17:06:02.588"));

    // Then:
    assertEquals("\"2022-01-20T17:06:02.588\"", result);
  }