public static String toTextPlain(@Nullable Object object) {
		if (object != null) {
			if (object instanceof String) {
				return (String) object;
			}
			else {
				try {
					final String jsonText = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(object);
					if (jsonText.startsWith("\"") && jsonText.endsWith("\"")) {
						return jsonText.substring(1, jsonText.length() - 1);
					}
					return jsonText;
				}
				catch (Exception ignore) {

				}
			}
		}
		return "";
	}
convert object to text plain to display
@param object object
@return object's text
src/main/java/org/mvnsearch/chatgpt/model/function/GPTFunctionUtils.java