tags:

views:

504

answers:

1

Hi,

I'm currently writing a web application in java using GWT 2.0 in eclipse. I wanted to know if there is a way to use Gson library in a GWT application's client code.

and if there is a way - please tell me how...

Thanks!

+1  A: 

Gson uses Java features that are not supported in GWT such as reflection. Thus it is not possible to use Gson in GWT client side code.

Lauri
so i am only supposed to use GSON on the backend (server) side?
Shai Rubinshtein
That's correct. On the client side the easiest way is to convert json to objects is to use overlay types.
Lauri