%dw 2.0
import * from dw::Runtime
var a = 123
output application/json
---
locationString(a)
DataWeave
locationString
locationString(value: Any): String
Returns the location string of a given value.
Parameters
Name | Description |
---|---|
|
A value of any type. |
Example
This example returns the contents of the line (the location) that defines
variable a
in the header of the DataWeave script.
Source
Output
"var a = 123"
JSON