I have an app that allows users to generate objects, and store them (in a MySQL table, as strings) for later use. The object could be :
function Obj() {
You would have to write your own stringify method that stores functions as properties by converting them to strings using the toString method.