Getting started Community Training Tutorials Documentation APIs, AI & Tools
name=Mariano&lastName=de+Achaval
MIME type: application/x-www-form-urlencoded
ID: urlencoded
URL encoded data represents a collection of key-value pairs. DataWeave represents these values as an object in which each value is a string.
The following examples show uses of the URL Encoded format:
This example shows how DataWeave represents simple URL encoded data.
The URL encoded data serves as input payload to the DataWeave source.
name=Mariano&lastName=de+Achaval
This example shows how to generate URL Encoded data.
This DataWeave script produces the URL encoded output.
This example transforms URL Encoded input into the Text Plain format and MIME type.
DataWeave supports the following configuration properties for this format.
This format accepts properties that provide instructions for writing output data.
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
|
Size of the buffer writer, in bytes. The value must be greater than |
|
|
|
Generates the output as a data stream when set to Valid values are |
|
|
|
The encoding to use for the output, such as UTF-8. |