@Override
        public void write(final JsonWriter out, final String value) {
            try {
                if (Objects.isNull(value)) {
                    out.nullValue();
                    return;
                }
                out.value(value);
            } catch (IOException e) {
                LOG.error("failed to write", e);
            }
        }
Get JsonElement class type.

@param element the element
@return Class the class
shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java