powered by
mongo.bson.buffer.append.null(buf, name)
mongo.bson.buffer.append
buf <- mongo.bson.buffer.create() mongo.bson.buffer.append.null(buf, "Nil") b <- mongo.bson.from.buffer(buf) # The above produces a BSON object of the form { "Nil" : NULL }
Run the code above in your browser using DataLab