json

*. fastjson将字符串转为泛型

        //SignResponse<SignEmailResponseNumber> class为SignResponse<T>
        SignResponse<SignEmailResponseNumber> responseObj = JSON.parseObject(responseStr,
                new TypeReference<SignResponse<SignEmailResponseNumber>>() {
                });

*.fastjson 转对象包含内部类时

对于与json字符串映射的类,类中采用了内部类,出现不能使用的情况,一定到给这个内部类加上static修饰就好了。
原文地址:https://www.cnblogs.com/SunAutumn/p/8303386.html