MongoDB\BSON\Javascript::serialize Serialize a Javascript &reftitle.description; final public stringMongoDB\BSON\Javascript::serialize &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Returns the serialized representation of the MongoDB\BSON\Javascript. &reftitle.errors; &mongodb.throws.argumentparsing; &reftitle.seealso; MongoDB\BSON\Javascript::unserialize serialize Serializing Objects