struts2 jsonplugin 的 includeProperties 正则问题。

"tpclist":
[

[{"ipstr":"","tpcCreatetime":"2010-09-30 10:00:00"},{"tuAddress":null,"tuUsername":"t2"}],

[{"ipstr":"","tpcCreatetime":"2010-09-30 10:00:00"},null],

[{"ipstr":"","tpcCreatetime":"2010-09-30 10:00:00"},null],

[{"ipstr":"","tpcCreatetime":"2010-09-30 10:00:00"},,{"tuAddress":null,"tuUsername":"t1"}]

]

单个的话可以用tpclist[\d+].来取得

这种嵌套的list json格式的数据 我如何用includeProperties 写正则来取得tpclist里面的内容?

tpclist[\d+]就是返回一个个的啊。假设你后太是List封装的,那么tpclist[\d+]返回的就是一个个List里的对象,就满足你这个恩啊。可以参考,我以前回答的[url]http://www.iteye.com/problems/48090[/url]