default Object format(ServerWebExchange exchange, Object origin) {
        // basic data or upstream data
        if (ObjectTypeUtils.isBasicType(origin) || origin instanceof byte[]) {
            return origin;
        }
        // error result or rpc origin result.
        return JsonUtils.toJson(origin);
    }
format the origin, default is json format except the basic and bytes.

@param exchange the exchange
@param origin the origin
@return format origin
shenyu-plugin/shenyu-plugin-api/src/main/java/org/apache/shenyu/plugin/api/result/ShenyuResult.java