struts2配置result type="json"
<result name="success" type="json">
<param name="root">annex</param> <!--annex是action中成员属性private ImsAnnex annex ; ..get...set...-->
<param name="noCache">true</param>
<param name="ignoreHierarchy">false</param> <!--ignoreHierarchy=true则annex不包含父类的属性-->
</result>