renamed cloneObject to cloneJSON