This article is in need of a technical review.
Obsolete since JSAPI 13
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
JSXDRObjectOp is the type for
typedef JSBool (* JSXDRObjectOp)(JSXDRState *xdr, JSObject **objp);
||The XDR reader or writer.|
||The object to be serialized or deserialized.|
Serialize or deserialize an object, given an XDR state record representing external data. See jsxdrapi.h.
JSClass offers the following hook:
JSClass.xdrObjectcallback to serialize and deserialize objects.