Skip to main content

BrightScript cloning nested Associative Arrays

Updated 1 min readMarkdown
Part of seriesBrightScript

In favor of immutability, creating a copy of an argument is required. When it comes to nested structure, that could become tricky.

In BrightScript, cloning nested Associative Arrays is as simple as:

clonedAA = parseJson( formatJson( someNestedAA ) )

No comments yet. Be the first to comment.