// this is for array with complex object var countries = [ {name: 'USA', population: '300M'}, {name: 'China', population: '1.6B'} ]; var newCountries = JSON.parse(JSON.stringify(countries));