1、使用阿里的fastjson
2、可以通过去除不必要属性加快序列化。如person对象,有id,name,address,我json需要用户姓名,此时序列化的时候就只序列化name,id和address不序列化。