JsonUtils.asString Function

Get a value as a string.

asString(json: any, defaultVal: string""): string

@returns the value of json as a string, or default value

Parameter Type Description
json any the input JSON object
defaultVal string default value if json cannot be converted to string

Returns - string

the value of json as a string, or default value

Defined in

Last Updated: 17 December, 2024