mongo in/out use bson instead of json

because MongoId can only be parsed by bson