I have a scenario where i need to copy the array of Objects(Main array) to another Temp array which should not have object reference basically if i make any modification to
So you want a deep copy without object reference? Sure, use .slice().
Example:
var mainArr = [], tmpArr = [] tmpArr = mainArr.slice(0) // Shallow copy, no reference used.
PS: I don't think double-JSON parsing is performance wise.