Spidergap interview question

Coding test asked to write a method to clone a JSON object.