Parse additional fields Struc from JSON into separate columns in Pyspark
I have a JSON file with a field named "AdditionalFields" as below- "additionalFields": [ { "fieldName":"customer_name", "fieldValue":"ABC" }, { "fieldName":"deviceid", "fieldValue":"1234" }, { "fieldName":"txn_id", "fieldValue":"2" }, { "fieldName":"txn_date", "fieldValue":"2017-08-14T18:17:37" }, { "fieldName":"orderid", "fieldValue":"I126101" } ] How to parse this as…