JsonUtils.asString Function

Get a value as a string.

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

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: 15 June, 2021