SlideShare a Scribd company logo
Mule JSON Transformers
JSON Primer
• JavaScript Object Notation
- a lightweight datainterchange format
[ element1, element2, element3..... ]
• Human-Readable Syntax
• Supports
1. Collections
2. Maps
{
"name1":"value",
"name2":"value"
}
JSON Primer
• Supports the combining:
1. Collections
∙ employees[0]
∙ employees[1]
2. Maps
• Supporting more complex data
JSON Transformer
• Object to JSON
- receives an object and returns JSON syntax
- uses reflection (no configuration necessary)
• JSON to Object
- populates a Java object from a JSON structure
- requires at least the name of the class
JSON Example
1. JSON input enters with an order request
2. Order business logic exists in a java component
3. After processing, a response comes back with the tax
included
JSON Example
1. Java object representation of an order
2. Can be read by business logic
3. Fields match that of JSON request.
JSON Example
JSON Example
1. JSON is transformed to Order
- returnClass specified
2. Order transformed back to JSON
JSON Example
• XML to JAXB
- Uses the JAXB binding framework to serialize to xml
or in reverse to an object
- Counterpart exists at JAXB to XML
• XML to Object
- Utilizes Xstream to convert data to and from XML
and Java Objects
- Counterpart exists as Object to XML

More Related Content

PPTX
JSON Processing and mule
PPTX
Mule: JSON to Object
PPTX
Connecting and using PostgreSQL database with psycopg2 [Python 2.7]
PDF
Cassandra
PPTX
Sql Server 2016 and JSON
PPT
PPTX
Introduction to JSON & AJAX
PDF
Ruby de Rails
JSON Processing and mule
Mule: JSON to Object
Connecting and using PostgreSQL database with psycopg2 [Python 2.7]
Cassandra
Sql Server 2016 and JSON
Introduction to JSON & AJAX
Ruby de Rails

What's hot (20)

PPTX
Node js crash course session 5
PDF
Tour de Jackson: Forgotten Features of Jackson JSON processor
PDF
Ecto Introduction by Patrick Vanstee
PDF
Android Level 2
PPTX
Node js crash course session 6
PDF
Fun with Functional Programming in Clojure
PDF
iOS: Web Services and XML parsing
PPTX
04 data accesstechnologies
PPT
PPTX
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
PPTX
Json parser
PDF
NoSQL and JavaScript: a Love Story
PPTX
MongoDB basics & Introduction
PDF
BITS: Introduction to relational databases and MySQL - Schema design
PPTX
MongoDB for Beginners
PPTX
Database Programming
PPTX
Meteor Modelling
PPT
Mule soft mel_day1
Node js crash course session 5
Tour de Jackson: Forgotten Features of Jackson JSON processor
Ecto Introduction by Patrick Vanstee
Android Level 2
Node js crash course session 6
Fun with Functional Programming in Clojure
iOS: Web Services and XML parsing
04 data accesstechnologies
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Json parser
NoSQL and JavaScript: a Love Story
MongoDB basics & Introduction
BITS: Introduction to relational databases and MySQL - Schema design
MongoDB for Beginners
Database Programming
Meteor Modelling
Mule soft mel_day1
Ad

Viewers also liked (20)

PPT
Mule - HTTP Listener
PPTX
Mule json transformers and Examples
PPTX
Mule messages and transformers
PPT
Mule 3.8
PPTX
Apache spark
PPTX
Mule esb file to-string flow
PPTX
Mule routing messages
PPTX
Java in Mule
PPTX
Groovy features
PPTX
Mule ESB data mapper and examples
PPTX
Error handling with respect to mule
PPTX
Core concepts in mule
PPTX
Multiplatform
PPTX
Distributed database
PPT
Anypoint studio 5.4 with mule 3.7.3
PPT
Simple Java component in Mule
PPTX
Java useful in Mule
PPTX
Mule data mapper
PPTX
Mule management console
Mule - HTTP Listener
Mule json transformers and Examples
Mule messages and transformers
Mule 3.8
Apache spark
Mule esb file to-string flow
Mule routing messages
Java in Mule
Groovy features
Mule ESB data mapper and examples
Error handling with respect to mule
Core concepts in mule
Multiplatform
Distributed database
Anypoint studio 5.4 with mule 3.7.3
Simple Java component in Mule
Java useful in Mule
Mule data mapper
Mule management console
Ad

More from veena naresh (13)

PPTX
Mule esb connectors
PPTX
Mule esb consule raml ws
PPTX
Mule esbdeployingapplicationtocloud
PPTX
Mule esbunderstandingwebservices
PPTX
Refactoring muleapplications
PPTX
Mule esb dataweave
PPTX
Transformers
PPTX
Mule filtering messages
PPTX
Mule functional, blackbox, unit testing
PPTX
Mule esb entry pointresolver
PPTX
Mule esb basics beginners
PPTX
Mule esb anypoint studio Tour
PPTX
Mule esb messages Different type of mule messages
Mule esb connectors
Mule esb consule raml ws
Mule esbdeployingapplicationtocloud
Mule esbunderstandingwebservices
Refactoring muleapplications
Mule esb dataweave
Transformers
Mule filtering messages
Mule functional, blackbox, unit testing
Mule esb entry pointresolver
Mule esb basics beginners
Mule esb anypoint studio Tour
Mule esb messages Different type of mule messages

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Reach Out and Touch Someone: Haptics and Empathic Computing
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
The AUB Centre for AI in Media Proposal.docx
Unlocking AI with Model Context Protocol (MCP)
Review of recent advances in non-invasive hemoglobin estimation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...

Mule json transformers

  • 2. JSON Primer • JavaScript Object Notation - a lightweight datainterchange format [ element1, element2, element3..... ] • Human-Readable Syntax • Supports 1. Collections 2. Maps { "name1":"value", "name2":"value" }
  • 3. JSON Primer • Supports the combining: 1. Collections ∙ employees[0] ∙ employees[1] 2. Maps • Supporting more complex data
  • 4. JSON Transformer • Object to JSON - receives an object and returns JSON syntax - uses reflection (no configuration necessary) • JSON to Object - populates a Java object from a JSON structure - requires at least the name of the class
  • 5. JSON Example 1. JSON input enters with an order request 2. Order business logic exists in a java component 3. After processing, a response comes back with the tax included
  • 6. JSON Example 1. Java object representation of an order 2. Can be read by business logic 3. Fields match that of JSON request.
  • 8. JSON Example 1. JSON is transformed to Order - returnClass specified 2. Order transformed back to JSON
  • 9. JSON Example • XML to JAXB - Uses the JAXB binding framework to serialize to xml or in reverse to an object - Counterpart exists at JAXB to XML • XML to Object - Utilizes Xstream to convert data to and from XML and Java Objects - Counterpart exists as Object to XML