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