I don't think you understand how GWT works.

There's client code & server code.  All the client code gets compiled to
javascript - you can't use it as pure Java because somewhere there will be a
call to a native function that is implemented in javascript (you'll get some
compile error if you try to use a regualr java compiler because it'll be
expecting JNI).

The client code (once compiled) can communicate with the server through a
variety of methods (although RPC is the easiest way).

So if you actually want to do JSON parsing on the server, then you need to
get an actual JSON parser or write your own (it's not difficult).  However,
the question is why are you doing JSON parsing on the server instead of
delegating that to the client's browser?

Besides, any parsing by GWT won't actually interpret the data for you.
However, you can write your own overlay
types<http://www.infoq.com/news/2008/08/gwt_overlay_types>(as of 1.5)
to make it easier to convert the parsed result into friendly
classes.

Above all, http://lmgtfy.com/?q=json+gwt.  There's plenty of people who have
thought about how to access JSON services using GWT.  I think you first need
to clarify what your trying to do to yourself & understand the difference
between what runs on the client, what runs on the server, & what the
difference between the two is in terms of security policies, functionality,
etc.

On Sat, Mar 7, 2009 at 6:56 PM, Brett S <[email protected]> wrote:

>
> Hi Shawn,
>
> Thanks for your reply.
>
> > Can you just use the api as straight java on the server side?
>
> I am hoping that I can use the API as pure Java. I presume (perhaps
> incorrectly) that there is Java code in GWT that will parse the
> results from JSON into a class called something like
> GsearchResultClass.
>
> However, I have spent hours searching the net and have not found
> anything like this. The Google APIs are are so broad and fully
> featured I feel like I am searching for a neddle in a haystack.
>
> Cheers
>
> Brett S
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to