SERVER-11724 make WriteResult.tojson() return json