I have the below CSV file format:
| title | studentName | studentID |
|---|---|---|
| Science | 'James','Jones' | 'JA002','JO101' |
I want to convert this to the below JSON format:
[{
"title": "Science",
"students":[
{
"studentname":"John",
"studentid":"JO12"
},
{
"studentname":"James",
"studentid":"JA23"
}
]
}]
How can I split the studentname and studentid in the CSV and convert it to the above JSON format using Talend Open Studio for Data Integration?



If there is no transformation needed, you should just be able to do the following:
If there is some transformation needed, you might want to do the following: