Re: JSONValidationInterceptor and quotes

2013-04-09 Thread Mael Le Guével
Hello Maurizio, Thanks for you quick reply. This is also what I understood from what I have read about JSON. I filed the following issue on JIRA : https://issues.apache.org/jira/browse/WW-4041 Not sure about all the parameters of the issue, sorry if I made a mistake. 2013/4/9 Maurizio Cucchiara :

Re: JSONValidationInterceptor and quotes

2013-04-09 Thread Maurizio Cucchiara
AFAIU there is no reason to escape the apostrophe. The only character to escape should be the quote (") Could you file an issue on JIRA [1]? [1] https://issues.apache.org/jira/browse/WW On 9 April 2013 08:50, Mael Le Guével wrote: > "Password isn\'t correct" Twitter :http://www.twitter

JSONValidationInterceptor and quotes

2013-04-08 Thread Mael Le Guével
Hello there, I am using struts JSON plugin to do some ajax requests. And I am facing a problem with org.apache.struts2.json.JSONValidationInterceptor. Everything works fine as long as my validation error messages do not contain single quotes. When there are quotes, the client side library "crashes"