You can use Object.toSource() to serialize the source to a string. To read the string back into objects, use eval(string);
----- Original Message ---- From: Vladimír Marek <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, July 14, 2006 10:35:47 AM Subject: [Project_owners] Storing configuration Hi, Is there some suggested way of storing complex configuration to mozilla preferences ? By complex I mean javascript object containing strings, booleans, numbers and perhaps even other objects. So far I'm decomposing the object "by hand" to several preferences, but some more automatic way would make my (lazy) life easier :) Thank you -- Vladimir _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
