<div id="output"></div>
var objectA = {
aProperty: 'a value',
childProperty: {
aChildProperty: 'a child value'
}
};
var objectB = jQuery.extend(true, {}, objectA);
$('#output').html(JSON.stringify(objectB));
This Pen doesn't use any external CSS resources.