Failed to serialize object of type class java.util.HashMap.
Map<String, Obj> res = getResults();
Genson genson = new Genson();
String maptoJSON = genson.serialize(res);
It works fine locally on my system (MAC) but does not work on the Stage box (Unix).
Obj is a class which has a few fields in it.
Ap
--
You received this message because you are subscribed to the Google Groups "Genson user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genson+un...@googlegroups.com.
To post to this group, send email to gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/genson.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/4337b495-3996-4169-9fdc-51f195acfb49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public class Obj {
ArrayList< ObjB > returns;
ArrayList< ObjB > trailingReturns;
}
public class ObjB implements Serializable {
Long returnDate;
Double netReturn;
Double aum;
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/344fdbf3-9aed-4485-b9f9-3750f04b0b96%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Genson user group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/genson/oErYhTAPLRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to genson+un...@googlegroups.com.
To post to this group, send email to gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/genson.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/90cbfdf9-c9ba-45f8-99c4-96c9833bd96b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Genson user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genson+un...@googlegroups.com.
To post to this group, send email to gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/genson.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/F74D2F1D-3293-46C7-B4FE-0854E93255A7%40gmail.com.