Json & PySpark – read value from a struct that may be null
I have a list of .json files that contain person information. One file contains info of one person. I want to load this data into table using pyspark in an Azure Databricks notebook. Let's say the files are built like…