5.1. root参数:从归回结果中根据ognl表达式掏出你需要输出的结果<wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 如:</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> action类</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class BaseAction extends ActionSupport implements</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> {</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private Person person = null;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> }</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class BaseAction extends ActionSupport implements {private Person person = null;...}</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> bean类</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 1</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class Person</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> {</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private String name;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private int age;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> }</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class Person {private String name;private int age;...}</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 我们只要输出person对象的name属性值,配置如次</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 1</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><img title="struts2处理json" alt="struts2处理json" src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" style="text-align:left; padding-bottom:0px; line-height:21px; border-right-width:0px; list-style-type:none; margin:0px; padding-left:0px; padding-right:0px; font-family:tahoma,arial,宋体,sans-serif; border-top-width:0px; border-bottom-width:0px; color:rgb(51,51,51); font-size:14px; border-left-width:0px; padding-top:0px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="root">person.name</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="root">person.name</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.2. excludeNullProperties 参数:表示是不是去掉空值, 默认值是false,如果设置为true会自动将为空的值过滤,只输出不为空的值。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="excludeNullProperties">true</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="excludeNullProperties">true</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.3. ignoreHierarchy 参数:表示是不是纰漏等级,也就是继承关系,好比:TestAction继承于BaseAction,那么TestAction中归回的json字符串默 认是不会包含父类BaseAction的属性值,ignoreHierarchy值默认为true,设置为false后会将父类以及子类的属性一起归回。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="ignoreHierarchy">false</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="ignoreHierarchy">false</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.4. includeProperties 参数:输出结果中需要包含的属性值,这搭正则表达式以及属性名匹配,可以用“,”分割填充多个正则表达式。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 如:输出person的所有属性</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="includeProperties">person.*, person\.name</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="includeProperties">person.*, person\.name</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.5. excludeProperties 参数:输出结果需要剔掉的属性值,也支持正则表达式匹配属性名,可以用“,”分割填充多个正则表达式,大致相同4.4.</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
5.1. root参数:从归回结果中根据ognl表达式掏出你需要输出的结果<wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 如:</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> action类</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class BaseAction extends ActionSupport implements</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> {</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private Person person = null;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> }</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class BaseAction extends ActionSupport implements {private Person person = null;...}</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> bean类</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 1</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class Person</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> {</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private String name;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> private int age;</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> }</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> public class Person {private String name;private int age;...}</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 我们只要输出person对象的name属性值,配置如次</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 1</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><img title="struts2处理json" alt="struts2处理json" src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" style="text-align:left; padding-bottom:0px; line-height:21px; border-right-width:0px; list-style-type:none; margin:0px; padding-left:0px; padding-right:0px; font-family:tahoma,arial,宋体,sans-serif; border-top-width:0px; border-bottom-width:0px; color:rgb(51,51,51); font-size:14px; border-left-width:0px; padding-top:0px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="root">person.name</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="root">person.name</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.2. excludeNullProperties 参数:表示是不是去掉空值, 默认值是false,如果设置为true会自动将为空的值过滤,只输出不为空的值。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="excludeNullProperties">true</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="excludeNullProperties">true</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.3. ignoreHierarchy 参数:表示是不是纰漏等级,也就是继承关系,好比:TestAction继承于BaseAction,那么TestAction中归回的json字符串默 认是不会包含父类BaseAction的属性值,ignoreHierarchy值默认为true,设置为false后会将父类以及子类的属性一起归回。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="ignoreHierarchy">false</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="ignoreHierarchy">false</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.4. includeProperties 参数:输出结果中需要包含的属性值,这搭正则表达式以及属性名匹配,可以用“,”分割填充多个正则表达式。</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 如:输出person的所有属性</span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <param name="includeProperties">person.*, person\.name</param></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </span><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> </result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> <result type="json"><param name="includeProperties">person.*, person\.name</param></result></span><wbr style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><br style="text-align:left; line-height:21px; font-family:tahoma,arial,宋体,sans-serif; color:rgb(51,51,51); font-size:14px"><span style="font-family:tahoma,arial,宋体,sans-serif; color:#333333; text-align:left; line-height:21px; font-size:14px"> 5.5. excludeProperties 参数:输出结果需要剔掉的属性值,也支持正则表达式匹配属性名,可以用“,”分割填充多个正则表达式,大致相同4.4.</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>