SERVER-13707 simplify tojsonObject