Recognize and interpret essential integration concepts and terminology20% of the exam

JSON, XML and YAML data formats

How JSON, XML and YAML structure data (objects and arrays, repeated elements with attributes and namespaces, indented mappings and sequences), which ones DataWeave reads and writes in transformations, and why YAML and .properties files hold Mule configuration properties.

Official exam objective
Recognize the differences between common data formats (for example, XML, YAML, and JSON) used in transformations and configuration files.

~5 min read · 4 practice questions ·

What the exam expects

  • Recognize a JSON, XML or YAML document from its structure and name the value types each one holds.
  • Describe how XML and JSON differ when one is transformed into the other (collections, attributes, namespaces, types).
  • Identify YAML and .properties as the file formats for Mule configuration properties.
  • Explain that DataWeave reads and writes many formats, each identified by a MIME type, so one script converts between them.

Key terms:

  • JSON: a format of objects and arrays holding strings, numbers, booleans and null.
  • XML: a format of nested elements, where collections are repeated elements and elements can carry attributes and namespaces.
  • YAML: a human-readable format of indented mappings and sequences.
  • MIME type: the identifier of a format, such as application/json.
  • Configuration properties: externalized settings that Mule flows read through ${...} placeholders.

Key facts

JSON types
Detail
String, Boolean, Number, Null, Object, Array
XML collections
Detail
Repeated (unbounded) elements
XML extras
Detail
Namespaces, CDATA, xsi:types
YAML types
Detail
String, Boolean, Number, Nil, Mapping, Sequences
Format MIME types
Detail
application/json, application/xml, application/yaml, application/csv
Config properties file types
Detail
.yaml and .properties only
Config property value type
Detail
String only, in both file types
Duplicate property
Detail
The first definition is preserved
Sources for this section (5)
  • Why would a DataWeave reader index a large file instead of loading it into memory?
  • When DataWeave represents JSON input in its own dw format, what changes?
  • When an XML file contains a doctype declaration, are DTDs processed by default?
  • Which MIME types does the DataWeave YAML format accept besides application/yaml?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the MuleSoft Integration Foundations pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 37 lessons of the MuleSoft Integration Foundations guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (4 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the MuleSoft Integration Foundations exam