I have tried below code to extract data which in Array:
df2 = df_deidentifieddocuments_tst.select(F.explode('annotationId').alias('annotationId')).select('annotationId.$oid')
It was working fine.. but,its not working for JSON object type. Below is column:
Any Ideas or suggestion would be great help. Thank you.