I think your main problem is that since j2s "contaminate" the javascript Object prototype (with methods wait,notifyAll,notify,finalize,clone,getClass,hashCode,equals), use javascript objects as "data objects" / maps it is more complicated than in a simple (non j2s) script. For example, in
Object o = null;
/**
* @j2sNative
* o={"a": "a"};
*/{}
o will have many more properties (functions) than "a". I have tried with "delete o.equals" or "o.equals=null" for deleting j2s Object prototype extensions but they don't seems to work...
I have done some code that translates a java bean to a json string (for easying json-rest comunications), but i'm not sure if that is what you want. Please make us inform of your advances in this respect
regards, hope you can understand my bad english
--
Sebastian Gurin <sgu...@softpoint.org>