i've got a databricks dataframe with a load of questionnaire results in them, the questionnaires on the df vary in length and do not always the same questions.
How can I get the questions and answers out of the string field Responses so i have a 3 column list of
"CustomerID, Questions, Answers"
So from this
CustomerID Responses
1 [{"question1":"answer 1"},{"question 2":"answer2"}]
2 [{"question1":"answer 1a"},{"question 2":"answer2b"}]
3 [{"question1":"answer 1b"},{"question 3":"answer3"}]
to resolve to
CustomerID Questions Answers
1 question1 answer1
1 question2 answer2
2 question1 answer1a
2 question2 answer2b
3 question1 answer1b
3 question3 answer3