---
title: "Discussion on \"BrightScript cloning nested Associative Arrays\" | Hashnode"
description: "Discussion on \"BrightScript cloning nested Associative Arrays\". In favor of immutability, creating a copy of an argument is required. When it comes to nested structure, that could become tricky.\nIn BrightScript, cloning nested Associative Arrays is as simple as:\nclonedAA = parseJson( formatJson( someNestedAA ) )"
url: "https://hashnode.com/posts/brightscript-cloning-nested-associative-arrays/6423aba0d086e9f91513b4ed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [BrightScript cloning nested Associative Arrays](https://blog.brightscripters.com/brightscript-cloning-nested-associative-arrays?utm_source=hashnode&utm_medium=feed)

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

Mar 29, 2023 · 1 min read · blog.brightscripters.com  
Updated Apr 19, 2023  
Read the article

-   [#brightscript](https://hashnode.com/tag/brightscript)

## Written by

[Bright Scripters](https://hashnode.com/@BrightScripters)

@BrightScripters · USA

  
[View profile](https://hashnode.com/@BrightScripters)

Taking BrightSign programming to the next level

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
