Spidergap Interview Question

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