Use JSON.stringify() and JSON.parse() - only gives issues in IE8 with an incorrect doctype (go figure?!?!).