JSON: Property 'xxx' has no getter method的解决办法

在使用JSONArray.fromObject时候出现JSONException:Property 'xxx' has no getter method。

解决办法:设置bean为public属性即可。

原文地址:https://www.cnblogs.com/bigbang92/p/jsonException-has-no-getter.html