Added deepCopyJson to copy json objects