Ideally the new implementation of this should also be able to produce valid syntax, as opposed to "debug BSON."