%dw 2.0
import * from dw::util::Coercions
output application/json
---
{
toUriExample: toUri("https://www.google.com/")
}
DataWeave
toUri
toUri(str: String): Uri
Transforms a String
value into a Uri
value.
Introduced in DataWeave version 2.4.0.
Parameters
Name | Description |
---|---|
|
The |
Example
This example shows how toUri
behaves.
Source
Output
{
"toUriExample": "https://www.google.com/"
}
DataWeave