ArrayToStruct
Transform the array to a struct, the index of the array is the key of the struct
Method Signature
ArrayToStruct(array=[array])Arguments
Argument
Type
Required
Description
Default
array
array
true
The array to convert
Examples
Convert an array to a struct using arrayToStruct()
JSONSerialize( arrayToStruct( [
"a",
"b"
] ) );
Result: {"1":"a","2":"b"}
Additional Examples
Related
Last updated
Was this helpful?
