Copying AJAX JSON object into existing Object
Try this using extend():
var newObject = jQuery.extend({}, oldObject);
Alternative without jQuery is to use the javascript Object.assign method.
Object.assign(targetObject, json);
You can use jQuery.extend: http://api.jquery.com/jQuery.extend/
$.extend(object1,object2);
If your JSON is a string then create an object from that first:
var object1=$.parseJSON(myJsonString);