support for dumps BSON objects into response