%dw 2.0
import * from dw::Runtime
output application/dw
---
{ "props" : prop("user.timezone") }
DataWeave
prop
prop(String): String | Null
Returns the value of the property with the specified name or null
if the
property is not defined.
Parameters
Name | Description |
---|---|
|
The property to retrieve. |
Example
This example gets the user.timezone
property.
Source
Output
{ props: "America/Los_Angeles" as String {class: "java.lang.String"} }
JSON