class Fastjson2ActionExecutor extends ActionExecuteHandlerDefault {
    private static final String label = "/json";

    private final JSONReader.Context config = JSONFactory.createReadContext();
    public JSONReader.Context config(){
        return config;
    }

    public Fastjson2ActionExecutor(){
        config.config(JSONReader.Feature.ErrorOnEnumNotMatch);
    }

    @Override
    public boolean matched(Context ctx, String ct) {<FILL_FUNCTION_BODY>}

    @Override
    protected Object changeBody(Context ctx, MethodWrap mWrap) throws Exception {
        String json = ctx.bodyNew();

        if (Utils.isNotEmpty(json)) {
            return JSON.parse(json, config);
        } else {
            return null;
        }
    }

    @Override
    protected Object changeValue(Context ctx, ParamWrap p, int pi, Class<?> pt, Object bodyObj) throws Exception {
        if(p.isRequiredPath() || p.isRequiredCookie() || p.isRequiredHeader()){
            //如果是 path、cookie, header
            return super.changeValue(ctx, p, pi, pt, bodyObj);
        }

        if (p.isRequiredBody() == false && ctx.paramMap().containsKey(p.getName())) {
            //有可能是path、queryString变量
            return super.changeValue(ctx, p, pi, pt, bodyObj);
        }

        if (bodyObj == null) {
            return super.changeValue(ctx, p, pi, pt, bodyObj);
        }

        if (bodyObj instanceof JSONObject) {
            JSONObject tmp = (JSONObject) bodyObj;

            if (p.isRequiredBody() == false) {
                //
                //如果没有 body 要求；尝试找按属性找
                //
                if (tmp.containsKey(p.getName())) {
                    //支持泛型的转换
                    if (p.isGenericType()) {
                        return tmp.getObject(p.getName(), p.getGenericType());
                    } else {
                        return tmp.getObject(p.getName(), pt);
                    }
                }
            }

            //尝试 body 转换
            if (pt.isPrimitive() || pt.getTypeName().startsWith("java.lang.")) {
                return super.changeValue(ctx, p, pi, pt, bodyObj);
            } else {
                if (List.class.isAssignableFrom(pt)) {
                    return null;
                }

                if (pt.isArray()) {
                    return null;
                }

                //支持泛型的转换 如：Map<T>
                if (p.isGenericType()) {
                    return tmp.to(p.getGenericType());
                } else {
                    return tmp.to(pt);
                }
            }
        }

        if (bodyObj instanceof JSONArray) {
            JSONArray tmp = (JSONArray) bodyObj;
            //如果参数是非集合类型
            if (!Collection.class.isAssignableFrom(pt)) {
                return null;
            }
            //集合类型转换
            if (p.isGenericType()) {
                //转换带泛型的集合
                return tmp.to(p.getGenericType());
            } else {
                //不仅可以转换为List 还可以转换成Set
                return tmp.to(pt);
            }
        }

        return bodyObj;
    }
}

        if (ct != null && ct.contains(label)) {
            return true;
        } else {
            return false;
        }
    
<methods>public non-sealed void <init>() ,public java.lang.Object executeHandle(org.noear.solon.core.handle.Context, java.lang.Object, org.noear.solon.core.wrap.MethodWrap) throws java.lang.Throwable,public boolean matched(org.noear.solon.core.handle.Context, java.lang.String) <variables>