I have CSV file with ~30 columns, one of the columns is a json string. What I want to do is to read the csv and breakdown the json to rows (explode).
for example: CSV:
"data1,date1,{"USERS-1":"ff", "name1":"Joe1", "age":"1"},1"
"data2,date2,{"USERS-2":"ff", "name2":"Joe2", "age":"2"},2"
"data3,date3,{"USERS-3":"ff", "name3":"Joe3", "age":"3"},3"
Result after:
"data1,date1,"USERS-1","ff",1"
"data1,date1,"name1","Joe1",1"
"data1,date1,"age","1",1"
"data2,date2,"USERS-2","ff",2"
"data2,date2,"name2","Joe1",2"
"data2,date2,"age","2",2"
"data3,date3,"USERS-3","ff",3"
"data3,date3,"name3","Joe1",3"
"data3,date3,"age","3",3"
I'm not writing in scala.
The Json is unstructured!