Trying to convert this large json into csv.Here is the sample JSON
[
[{
"User": "Phoebe",
"text": "Oh my God, hes lost it. Hes totally lost it.",
"sent": "non-neutral"
},
{
"user": "Monica",
"text": "What?",
"sent": "surprise"
}
],
[{
"user": "Joey",
"text": "Hey Estelle, listen",
"sent": "neutral"
},
{
"user": "Estelle",
"text": "Well! Well! Well! Joey Tribbiani! So you came back huh? They",
"sent": "surprise"
}
]
]
with open('/Users/dsg281/Downloads/EmotionLines/Friends/friends_dev.json') as data_file:
data = json.load(data_file)
am trying to get output in csv
with columns "User","text","sent"