public static @NotNull String escapeForJsonPointer(@NotNull String name) {
    if (StringUtil.isEmptyOrSpaces(name)) {
      return URLUtil.encodeURIComponent(name);
    }
    return StringUtil.replace(StringUtil.replace(name, "~", "~0"), "/", "~1");
  }
public static @NotNull String escapeForJsonPointer(@NotNull String name)