Subj : object serialization To : netscape.public.mozilla.jseng From : Jens Thiele Date : Wed Mar 24 2004 12:13 pm i am currently getting started with embedding spidermonkey i have to send pure javascript objects (without native methods) via network (serialize/deserialize) where to start? i have seen a thread mentioning Script.freeze but it seems this is disabled in the debian build of the spidermonkey package - and in the source there is this comment: jsscript.c: [...] #if JS_HAS_XDR_FREEZE_THAW /* * These cannot be exposed to web content, and chrome does not need them, so * we take them out of the Mozilla client altogether. Fortunately, there is * no way to serialize a native function (see fun_xdrObject in jsfun.c). */ static JSBool script_freeze(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { [...] i need a fast, secure and compact (serialzed objects should be small) solution thx karme PS: spidermonkey is great so far .