bson_from_jason convenience function