Method Standards.BSON.encode()
- Method encode
 stringencode(array|mappingm,int|voidquery_mode)- Description
 Encode a data structure as a BSON document.
- Parameter 
query_mode if set to true, encoding will allow "$" and "." in key names, which would normally be disallowed.