JsonUtils.asArray Function

Get a value as an array.

asArray(json: any): any

@returns the input JSON object if it is an array, otherwise undefined

Parameter Type Description
json any the input JSON object

Returns - any

the input JSON object if it is an array, otherwise undefined

Defined in

Last Updated: 26 November, 2024