I am using hibernate to generate a json object by Struts & struts-json-plugin
on 2.2.1

my object is kind of list[].set[].set[].... 

when my add a pattern as below: 
list\[\d+\]\.set\[\d+\]\.set\[\d+\]\.attr,
apple.*,
orange.*

the json result cannot generate the correct json string.  After I debug the
trace.  I suspect the interceptor cannot parse my pattern correctly.  in the
JSONWriter.write, includeproperties attribute is carrying following list of
data (only): 
list 
list\[\d+\] 
list\[\d+\].set 

It seems cannot support multi-level of array parsing and will skip the rest
of pattern.  Am I using a wrong pattern to parse it out? 

Please help~ 

Regards, 
Benny

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Problem-on-json-result-on-includeparameter-configuration-tp4438046p4438046.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to