Hi,

I was not clear with my doubt. I dont´t want to use json-plugin, since rest-plugin already has a json solution.

I wanna try to use 100% of rest-plugin json solution and, at same time, keep the control over the data is returned.

Thanks,
Felipe Lorenz

Em 25/02/2014 13:25, Lukasz Lenart escreveu:
http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-CustomizingSerializationandDeserialization
?

2014-02-25 15:09 GMT+01:00 Felipe Lorenz <felipe.lor...@idealogic.com.br>:
Hello,

I have been working on projects with Struts2 + Rest + JSON.

It is just perfect.

But, there is always a but, when I use JSON as response I have to define the
json plugin and add the rules in the struts.xml file.

I know rest plugin has it own json solution through adding ".json" in the
end of URL, but I always falls in the cyclic exception. I complete
understand this exception, what I don´t know is how to configure it.

I mean, there is a way to put a limit in how deep the objetcs will be
parsed? Or even describe what I want in the json response?

Thanks in advance,
Felipe Lorenz

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


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

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

Reply via email to