Separate JSON and BSON