@NotNull
  @Override
  public String toJsonString(@NotNull Object obj) {
    if (obj instanceof String) {
      return (String) obj;
    }
    try {
      return objectMapper.writeValueAsString(obj);
    } catch (JsonProcessingException e) {
      throw new RuntimeException(e);
    }
  }
Json mapper to adapt shaded jackson.
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/JavalinJsonMapper.java