struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitris Mouchritsas <>
Subject Skip parsing of property for json plugin
Date Fri, 30 May 2014 15:53:37 GMT
Hi all,

I'm using struts2-core along with struts2-json-plugin and I 
have the following problem:

I have an entity bean, say Event which has the following 3 properties:
id, dateCreated and data

data is already a json string saved in the database.
Event data: 

Now in my struts2 action I have a List<Event> gridModel which I feed to 
a jquery grid.

My problem is that the data property string is being escaped, e.g:


Is there any way to avoid this escaping? What alternatives do I have?
One idea is to just return a tiles plugin and create the json string by 
hand in a jsp.

 From what I've seen @JSON annotation does not have the option to skip 
escaping. This might be nice.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message