Problem of reading and copying json elements

I found a solution but not very flexible.
Basically for each painting I make a stringify then a parse. This allows to detach the json object from the original. Because in fact by duplicating the object it creates a kind of instance. So each modification is reflected on each object.

test.Salon = JSON.parse(JSON.stringify(test.Salon));

Thank you again for taking the time to help me. @Jon :grinning:

1 Like