You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by benny <be...@yahoo.com> on 2011/05/30 03:27:06 UTC
Problem on json result on includeparameter configuration
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org