This may be a repeat question but I haven't been able to find a solution. I have some complex java object and I want to serialize it to json string and then I want to pass it to Rest web services from GWT client. For calling rest web services I am using RequestBuilder class or RPC proxy. The problem is I haven't been able to find a solution to convert Object to json I tried using AutoBean framework but I have read on somewhere on stack overflow that it is very buggy. The Object that I want to convert can be any inbuilt Java serialize able object String, HashMap, ArrayList or it can be custom POJO object. The project that I am working on is very large and I want a robust solution. I tried this
AutoBean<HashMap> bean = AutoBeanUtils.getAutoBean(myMap);
return AutoBeanCodex.encode(bean).getPayload();
This is returning null string