1.JSONObject的异常
Object is null (through reference chain: net.sf.json.JSONArray[0]->net.sf.json.JSONObject["data"]->net.sf.json.JSONNull["empty"])
描述:出现这个错误的原因是net.sf.json.JSONArray或JSONObject转换时,对象内包含另一个对象,而该被包含的对象为NULL,所以抛出异常。
解决办法:
不要使用net.sf.json.JSONArray;或者是net.sf.json.JSONObject包使用com.alibaba.fastjson.JSONArray或JSONObject就行了