JSON to BSON conversion library