%dw 2.0
import * from dw::core::Strings
output application/json
---
{
"fromCharCode" : fromCharCode(117)
}
DataWeave
fromCharCode
fromCharCode(charCode: Number): String
Returns a character that matches the specified Unicode.
Parameters
Name | Description |
---|---|
|
The input Unicode (a |
Example
This example inputs the Unicode number 117
to return the character "u".
Source
Output
{ "fromCharCode": "u" }
JSON
fromCharCode(charCode: Null): Null
Helper function that enables fromCharCode
to work with a null
value.
Introduced in DataWeave version 2.4.0.