Are there any JSON encoding/decoding libraries that will work on both
client and server and that will work with inheritance? Here's the basic
structure I'm working with:
Class Recording {
String title;
List<Event> events;
}
abstract class Event {
Long time;
}
class EventOne extends Event {
String someProperty;
}
class EventTwo extends Event {
Long someOtherProperty;
}
My goal is to be able to take the POJO and encode it to JSON on the server
side (actually an android app), and decode the JSON on the client side. I'd
really like to package that functionality up into a jar file that can be
shared between the projects.
I've tried using AutoBeans, which encode just fine, but it seems they do
not support inheritance. RestyGWT supports inheritance, but only works on
the client side. GSON only works on the server side. Is there one library
to rule them all, or do I need to use different libraries for client and
server side processing?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.