Howto:Serializing Nasal data structures: Difference between revisions

Jump to navigation Jump to search
Line 83: Line 83:
if (type == "vector") return serializeVector(data);
if (type == "vector") return serializeVector(data);
if (type == "hash") return serializeHash(data);
if (type == "hash") return serializeHash(data);
if (type == "ghost" or type == "func") return "";
if (type == "ghost" or type == "func") return "nil";
die("cannot serialize unsupported data type:", type);
die("cannot serialize unsupported data type:", type);
}  
}  

Navigation menu