We love hearing from our users. Tell us what you want to see next and upvote ideas from the community. * Bugs and troubleshooting should as usual go through InterSystems support.
Add %ConstructClone or Copy method in Dynamic Object and arrays
Currently we don't have option to clone the JSON object or array. Whenever I set the JSON object to another variable and execute the %Remove() or %Pop() method to in any of the object it impacts other(s) due to in memory same object reference.
Add %ConstructClone() method would be useful.
ADMIN RESPONSE
Dec 19, 2024
Thank you for submitting the idea. The status has been changed to "Needs review".
There is no explicit clone method but the deep cloning can be effectively achieved by: