MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Convert MongoDB UUID as String

Hi - I am extracting data from MongoDB using Spark and there are multiple UUID fields. When extracted the data looks is in this format. Is there anyway to convert them by default to string instead of converting each one of them ?

"identifier":{
   "subType":3,
   "data":"i0vN4uMhmCdKdUgx5HyKoQ=="
} 

Environment: Azure Databricks DBR 6.4
Mongo JAR: mongo_spark_connector_2_11_2_2_7_assembly.jar