json: allow passing in a bson when converting to allow for chaining.

this will allow passing in a bson_t that came from bson_writer_t so that
encoding packets can be transparent.