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.
The JSON object serves as the input payload to the DataWeave source.
{
"name": "Mariano"
}
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 the URL Encoded format.
The URL Encoded format accepts properties that provide instructions for writing output data.
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
|
Size of the writer buffer. |
|
|
|
When set to |
|
|
|
Encoding for the writer to use. |