SlideShare a Scribd company logo
1 of 9
Mule ESB-Flat File –Json
Flat file to Json using Files
Introduction
 This is Demo for converting a flat file with delimiter separated values to a
Json output using files
Note: This is a simple conversion using the metadata option in files
Steps
 Drag a File Component into the flow with the File input and File output and
configure the metadata and List<Csv> with one sample column with any
name.
 Drag the transform message from the mule palate to flow and rename the
mime type as “application/json”
 Use the logger for observing the payload data.
 Drag a file component at the end and mention the output path and output
file name.
 Note:
 Sample input flat file and the Json output in the next slides.
Sample Flat file data
ACCOUNT_SPECIFIC_ID|ACCOUNT_TOKEN_ID|REGION_SPECIFIC_ID
4065558000|300050|390
4065558120|312350|490
4065554534|412350|590
4065345343|512350|690
4065685685|612350|790
4065558000|712350|890
Output Json
[ { "ACCOUNT_SPECIFIC_ID": "4065558000",
"ACCOUNT_TOKEN_ID": "300050",
"REGION_SPECIFIC_ID": "390"
},
{
"ACCOUNT_SPECIFIC_ID": "4065558120",
"ACCOUNT_TOKEN_ID": "312350",
"REGION_SPECIFIC_ID": "490"
},
{ "ACCOUNT_SPECIFIC_ID": "4065554534",
"ACCOUNT_TOKEN_ID": "412350",
"REGION_SPECIFIC_ID": "590"
},
Output json
{ "ACCOUNT_SPECIFIC_ID": "4065345343",
"ACCOUNT_TOKEN_ID": "512350",
"REGION_SPECIFIC_ID": "690"
},
{ "ACCOUNT_SPECIFIC_ID": "4065685685",
"ACCOUNT_TOKEN_ID": "612350",
"REGION_SPECIFIC_ID": "790"
},
{ "ACCOUNT_SPECIFIC_ID": "4065558000",
"ACCOUNT_TOKEN_ID": "712350",
"REGION_SPECIFIC_ID": "890"
}
]
Mule Flow
Set Metadata for input file
Thank you

More Related Content

Similar to Mule esb flat file –json

How to process Flat Files documents (TXT, CSV …) in BizTalk Server
How to process Flat Files documents (TXT, CSV …) in BizTalk ServerHow to process Flat Files documents (TXT, CSV …) in BizTalk Server
How to process Flat Files documents (TXT, CSV …) in BizTalk Server
Sandro Pereira
 
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
Faysal Shaarani (MBA)
 

Similar to Mule esb flat file –json (11)

Unit 2 web technologies
Unit 2 web technologiesUnit 2 web technologies
Unit 2 web technologies
 
How to process Flat Files documents (TXT, CSV …) in BizTalk Server
How to process Flat Files documents (TXT, CSV …) in BizTalk ServerHow to process Flat Files documents (TXT, CSV …) in BizTalk Server
How to process Flat Files documents (TXT, CSV …) in BizTalk Server
 
Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200
 
Mule dataweave
Mule dataweaveMule dataweave
Mule dataweave
 
Mule data weave_10
Mule data weave_10Mule data weave_10
Mule data weave_10
 
Training Storyboard
Training StoryboardTraining Storyboard
Training Storyboard
 
Easy Dataweave transformations - Ashutosh
Easy Dataweave transformations - AshutoshEasy Dataweave transformations - Ashutosh
Easy Dataweave transformations - Ashutosh
 
Transf from csv to xml
Transf from csv to xmlTransf from csv to xml
Transf from csv to xml
 
Knockout.js components&routing
Knockout.js components&routingKnockout.js components&routing
Knockout.js components&routing
 
2014 Taverna tutorial Xpath
2014 Taverna tutorial Xpath2014 Taverna tutorial Xpath
2014 Taverna tutorial Xpath
 
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
Load & Unload Data TO and FROM Snowflake (By Faysal Shaarani)
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 

Mule esb flat file –json

  • 1. Mule ESB-Flat File –Json Flat file to Json using Files
  • 2. Introduction  This is Demo for converting a flat file with delimiter separated values to a Json output using files Note: This is a simple conversion using the metadata option in files
  • 3. Steps  Drag a File Component into the flow with the File input and File output and configure the metadata and List<Csv> with one sample column with any name.  Drag the transform message from the mule palate to flow and rename the mime type as “application/json”  Use the logger for observing the payload data.  Drag a file component at the end and mention the output path and output file name.  Note:  Sample input flat file and the Json output in the next slides.
  • 4. Sample Flat file data ACCOUNT_SPECIFIC_ID|ACCOUNT_TOKEN_ID|REGION_SPECIFIC_ID 4065558000|300050|390 4065558120|312350|490 4065554534|412350|590 4065345343|512350|690 4065685685|612350|790 4065558000|712350|890
  • 5. Output Json [ { "ACCOUNT_SPECIFIC_ID": "4065558000", "ACCOUNT_TOKEN_ID": "300050", "REGION_SPECIFIC_ID": "390" }, { "ACCOUNT_SPECIFIC_ID": "4065558120", "ACCOUNT_TOKEN_ID": "312350", "REGION_SPECIFIC_ID": "490" }, { "ACCOUNT_SPECIFIC_ID": "4065554534", "ACCOUNT_TOKEN_ID": "412350", "REGION_SPECIFIC_ID": "590" },
  • 6. Output json { "ACCOUNT_SPECIFIC_ID": "4065345343", "ACCOUNT_TOKEN_ID": "512350", "REGION_SPECIFIC_ID": "690" }, { "ACCOUNT_SPECIFIC_ID": "4065685685", "ACCOUNT_TOKEN_ID": "612350", "REGION_SPECIFIC_ID": "790" }, { "ACCOUNT_SPECIFIC_ID": "4065558000", "ACCOUNT_TOKEN_ID": "712350", "REGION_SPECIFIC_ID": "890" } ]
  • 8. Set Metadata for input file