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