I need to convert existing delimiter file to json format using dataweave in mule.
Sample Input:
Name~#~ID~#~Company~#~Address
SRI~#~1~#~Infy~#~Bangalore
Rahul~#~2~#IBM~#~US
John~#~3~#~SF~#~UK
Sample outPut
{
Name: Sri
ID: 1
Company: Infy
Adress: Bangalore
},
{
Name: Rahul
ID: 2
Company: IBM
Adress: US
},
{
Name: John
ID: 3
Company: SF
Adress: UK
}
But i am getting below output
Dataweave Transforamtion