Skip to main content

Command Palette

Search for a command to run...

BrightScript cloning nested Associative Arrays

Updated
1 min read

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 ) )

BrightScript

Part 17 of 19

BrightAuthor plugin development with BrightScript, the scripting programming language for the BrightSign player.

Up next

BrightAuthor Plugins development essentials

For effective BrightScript development for BrightSign, we recommend the following steps: Read the rest here...