I'm a Newbie at GAE, JSON, REST and the web in general. I have a very simple GWT/GAE datastore I would like to use to update data in an Android application I wrote. After some research, it seems a good way to do this is to create a RESTful web service my Android App will access through an HTTP request that sends back JSON formatted data.
I've been looking for a way to do this and there seems to be many ways, mostly using 3rd party libraries. There are so many, it's hard to choose wisely as a beginner. Also, my problem is so simple that this would be a good chance to learn the basics of creating a RESTful web service and JSON on GAE. All it needs to do is return JSON data from a URL - no creates, no updates, no deletes.
I imagine a simple example or tutorial of Java code would make more sense to achieve my goal than learning a complicated library. Does anyone know of a simple example or tutorial to send me in the right direction?
Thanks.
No Snark Please
== Update:
In the doGet @Override of GreetingServiceImpl that comes from the wizard, I added:
// super.doGet(req, resp);
PrintWriter out = resp.getWriter();
out.println("Hello World");
This seems to work. Could it be this simple? Can I just modify this code to generate my JSON output in place of the "Hello World" string and I'm done?