beautifyDoc change to support json<>bson