How is this better than existing JSON libraries, such as Google GSON?
http://code.google.com/p/google-gson/

Moreover, GSON's use of reflection (JsonDeserializatonVisitor &
ObjectNavigator) might make it possible to use it for RequestFactory
(both servlet, and client-side code generation) with less coding; or
even building a generator for automatic JSON marshalling/unmarshalling
for any POJO (even taking advantages of GSON annotations), think of:
  interface PojoJsonMarshaller extends JsonMarshaller<Pojo> {
  }
  static final PojoJsonMarshaler MARSHALLER =
GWT.create(PojoJsonMarshaller);
  ...
  Pojo pojo = new Pojo();
  ...
  String json = MARSHALLER.serialize(pojo);
  ...
  Pojo pojo = MARSHALLER.parse(json);

http://gwt-code-reviews.appspot.com/696801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to