SERVER-8823: make printjson() and printjsononeline() available to  and MapReduce