Re: REST and JSON plugins

2008-07-14 Thread Jeromy Evans
Oleg Mikheev wrote: Hi! Will REST plugin replace JSON plugin in Struts 2.1? To my mind JSON plugin was very REST-like, and I was really hoping that it would evolve into something that REST plugin claims to be. Also, do REST and JSON plugins have anything in common? They're not related except

Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
The original idea behind the JSON plugin was to use an external library to serialize the objects, xstream to be more specific. But xstream json wasn't even usable at that point and json-lib didn't look that good to me. I think Struts 2 should include a json plugin, and yes we could delegate the

Re: REST and JSON plugins

2008-07-14 Thread Marc Logemann
+1 for a pluggable serializer. I dont like the internal json plugin serializer that much and yes, the plugin should be included in the distro because json is that popular these days -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am

Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
It should be easy to plug in a new serializer (only JSONUtil needs to be changed I think). If you have suggestions on how to improve the current serializer, let me know, or even better, a patch ;) musachy On Mon, Jul 14, 2008 at 11:05 AM, Marc Logemann [EMAIL PROTECTED] wrote: +1 for a