Re: A Problem in Json plugin!

2007-03-26 Thread joey
About adding parameters,I thought maybe it's easy to specify the root object of the json result while you use the action object as default.for example: currentUser currentUser is a ognl expression. I could get more flexible json format than now, and I thought it's very easy to do that. I jus

Re: A Problem in Json plugin!

2007-03-26 Thread joey
The test action: public class ExampleSupport extends ActionSupport { public String getName() { //a string of chinese return "测试"; } } This action should get a json like this : {"name":"测试"}, the name property's length is 4,but json.length is 2. So the last 2 character is cutted,and I ge

Re: A Problem in Json plugin!

2007-03-26 Thread Musachy Barroso
Hi Joey Could you send me a testcase for the problem you are having, like a sample action that will break the json generation? I thought about adding parameters a while back, the problem is that the parameters work for the action, but if you have an object returned by one of the getter methods in

A Problem in Json plugin!

2007-03-25 Thread joey
I just tried to generate json result by using Json plugin. But I found that the result is cutted,not a well-formed json result. After debugging ,I found the reason,one of my string property of the struts action isn't a iso-8859-1 encoding string. In the method "execute" of class JSONResult,you co