implementation of Web API BSON formatter