Google Web Toolkit has a JSON library (com.google.gwt.json.client). The 'client' part of that name makes me suspect that it isn't intended for use server-side. The following code in a server-side RPC method confirms my suspicions:
System.out.println("attempting to make JSONArray");
JSONArray test = new JSONArray();
System.out.println("Made JSONArray");
By throwing a ClassNotFound(JSONArray) exception. I need to build some JSON server-side.
1) Am I correct in believing that I can't use the com.google.gwt.json.client package on the server? 2) If so, is there a good alternative with approximately the same interface that I can use to construct JSON on the server?
I'm running my app on App Engine, in case it matters.