name=Mariano&lastName=de+Achaval
URL Encoded Format
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.
Examples
The following examples show uses of the URL Encoded format:
Example: Represent URL Encoded Data in the DataWeave (dw) Format
This example shows how DataWeave represents simple URL encoded data.
Input
The URL encoded data serves as input payload to the DataWeave source.
Example: Generate URL Encoded Data from a JSON Object
This example shows how to generate URL Encoded data.
Example: Generate URL Encoded Data from a Collection of Key-Value Pairs
This DataWeave script produces the URL encoded output.
Example: Transform URL Encoded Data to the Text Plain Format
This example transforms URL Encoded input into the Text Plain format and MIME type.
Configuration Properties
DataWeave supports the following configuration properties for this format.
Writer Properties
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. |