REST and JSON: null values, content type

2008-11-10 Thread Alex Milanovic
Hi All, Two questions about the REST plugin and its support for JSON (note I am using 2.1.3-SNAPSHOT to be able to use hierarchical REST resources): 1. I noticed that when the plugin serializes the response to JSON a null string is serialized as an empty string and a null array is serialized as a

Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
wrote: >>> >>> 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 i

Re: REST and JSON plugins

2008-07-14 Thread Marc Logemann
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 both can serialize an action/model into JSON. In the past I created a ContentTypeHandler for the REST Plugin

Re: REST and JSON plugins

2008-07-14 Thread Musachy Barroso
ST-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 both can serialize an action/model into JSON. > > In the past I

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 e

REST and JSON plugins

2008-07-14 Thread Oleg Mikheev
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? After I read REST plugin author's Struts

Re: REST and JSON

2007-12-23 Thread Frans Thamura
> > At the moment the Struts2 framework allows you to plug in various result > types for an action. It wouldn't surprise me if this also evolves to a > result type based on the requested content type as per the REST plugin's > implementation as its a really good idea.

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Frans Thamura wrote: hi there i just want to map my architecture is the JSON Plugins will become part of REST or both are separated. They are separate. The REST plugin already includes a JSON ContentTypeHandler using xstream: http://xstream.codehaus.org/json-tutorial.html Essentially x

Re: REST and JSON

2007-12-21 Thread Frans Thamura
hi there i just want to map my architecture is the JSON Plugins will become part of REST or both are separated. will the JSON become stable version after REST stable ? and will REST become official feature in 2.1 NB: anyone have a binary?

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Adam Hardy wrote: Jeromy Evans on 20/12/07 22:25, wrote: http://my.company.com/myapp/rest/orders/1 All you're supposed to do is assign a unique URL to each resource, which is exactly you've done. Other important aspects of the approach are: - you're binding the HTTP methods to certain operati

Re: REST and JSON

2007-12-21 Thread Adam Hardy
Jeromy Evans on 20/12/07 22:25, wrote: http://my.company.com/myapp/rest/orders/1 All you're supposed to do is assign a unique URL to each resource, which is exactly you've done. Other important aspects of the approach are: - you're binding the HTTP methods to certain operations (or in the case

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Adam Hardy wrote: I have a couple of questions on this subject too, if it's OK to join in here: I was trying to find the low-down on 2.1 on the wiki or the jira, so i could get an impression of what and how much is implemented. I couldn't work out exactly what's what: there are 170 open jira

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Frans Thamura wrote: hi all i am using JSON Plugins and RSS plugin in my S2Project and we know there will be REST in S2 2.1 anyone can give me the glue The JSON plugin can be used as a ContentTypeHandler with the REST plugin. Presumably the RSS plugin can also be used as a ContentTypeHandl

Re: REST and JSON

2007-12-20 Thread Frans Thamura
On 12/20/07, Adam Hardy <[EMAIL PROTECTED]> wrote: > > I have a couple of questions on this subject too, if it's OK to join in > here: i think the REST idea is cool i try to make my project also have REST implementation, and try to make a REST to PDF, the idea to make resume builder, like linke

Re: REST and JSON

2007-12-20 Thread Adam Hardy
I have a couple of questions on this subject too, if it's OK to join in here: I was trying to find the low-down on 2.1 on the wiki or the jira, so i could get an impression of what and how much is implemented. I couldn't work out exactly what's what: there are 170 open jira against 2.1.0 - 2.1.

REST and JSON

2007-12-18 Thread Frans Thamura
hi all i am using JSON Plugins and RSS plugin in my S2Project and we know there will be REST in S2 2.1 anyone can give me the glue will S2 JSON Plugins retired and or part of RSS and can give me the inptu also where will we implement JSON RPC in S2 will REST also have REST RPC? Frans