added debug. clone JSON object.