Restfulie and GSON or another JSON serialization library

98 views
Skip to first unread message

felipebn

unread,
Jun 10, 2011, 3:05:14 PM6/10/11
to restfulie-java
Would be interesting for Restfulie use a library like GSON instead of
Xstream + Jettison to work with JSON based services?

Guilherme Silveira

unread,
Jun 11, 2011, 12:04:36 PM6/11/11
to restful...@googlegroups.com

Hi Felipe

Sure. Can you provide us with a provider? Let me know if I can help you.

Regards

Guilherme Silveira

Felipe Brandão

unread,
Jun 12, 2011, 12:53:28 AM6/12/11
to restful...@googlegroups.com
I'm working on a project moving from the old and tired model using XML based services with SOAP to a JSON model, and i found some troubles while i'm trying to achieve that with Restfulie, client side, and VRaptor , server side, so i created a new MediaType which use GSON library for mashalling and unmarshalling in JSON format.

So i think i cant provide a MediaType implementation for that, i just don`t know the right way to do that...

[]s

Felipe
--
<<http://boogus.wordpress.com>>

Guilherme Silveira

unread,
Jun 12, 2011, 3:53:15 PM6/12/11
to restful...@googlegroups.com

Hi Felipe

Thats great news. It should not be too hard to contribute with it then.

There is an interface for media type marshal and unmarshal on the client side. Did you implement it? If you share the code somewhere I can easier give you thw guideline

Regards

Guilherme Silveira

On 12/06/2011 10:15 AM, "Felipe Brandão" <thrash...@gmail.com> wrote:

I'm working on a project moving from the old and tired model using XML based services with SOAP to a JSON model, and i found some troubles while i'm trying to achieve that with Restfulie, client side, and VRaptor , server side, so i created a new MediaType which use GSON library for mashalling and unmarshalling in JSON format.

So i think i cant provide a MediaType implementation for that, i just don`t know the right way to do that...

[]s

Felipe




On Sat, Jun 11, 2011 at 1:04 PM, Guilherme Silveira <guilherme...@caelum.com.br> wrote:
>

>...

--
<<http://boogus.wordpress.com>>

Felipe Brandão

unread,
Jun 12, 2011, 6:00:51 PM6/12/11
to restful...@googlegroups.com
Hi Guilherme, i already make use of MediaType interface, i'll post the implementation here tomorrow, when i'll be at work.

[]s

Felipe

Guilherme Silveira

unread,
Jun 13, 2011, 10:25:44 AM6/13/11
to restful...@googlegroups.com
Great!
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

2011/6/12 Felipe Brandão <thrash...@gmail.com>:

Guilherme Silveira

unread,
Jun 22, 2011, 10:17:32 AM6/22/11
to restful...@googlegroups.com
Hi Felipe!

No problems :)
Can you fork+clone the repository at github and then commit it to your
fork? Then you can click "send pull request" and it will automatically
share it with us.
This is the easiest way to review the code together.

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

2011/6/22 Felipe Brandão <thrash...@gmail.com>:
> Hi Guilherme!
> I'm bit late, but here is the implementation i made:
> http://dl.dropbox.com/u/17363781/restfulie-gson-impl.zip
> (seems not possible to upload files to the group, so i used dropbox to share
> it)
> Inside the zip file i put only the new files needed for restfulie work with
> GSON library, an unit test and the modified pom.xml.
> I know this isn't the best way to suggest any modification, so i
> would appreciate to know the right way. =D
>
> Regards,
> Felipe Brandão

> --
> <<http://boogus.wordpress.com>>
>

Felipe Brandão

unread,
Jun 22, 2011, 10:15:55 AM6/22/11
to restful...@googlegroups.com
Hi Guilherme!

I'm bit late, but here is the implementation i made: http://dl.dropbox.com/u/17363781/restfulie-gson-impl.zip

(seems not possible to upload files to the group, so i used dropbox to share it)

Inside the zip file i put only the new files needed for restfulie work with GSON library, an unit test and the modified pom.xml.

I know this isn't the best way to suggest any modification, so i would appreciate to know the right way. =D


Regards,

Felipe Brandão

On Mon, Jun 13, 2011 at 11:25 AM, Guilherme Silveira <guilherme...@caelum.com.br> wrote:

Felipe Brandão

unread,
Jun 22, 2011, 10:34:07 AM6/22/11
to restful...@googlegroups.com
Ok, i will do that soon!

Thanks!


Reply all
Reply to author
Forward
0 new messages