Please read
my node.
showParams cannot be evalled because of syntax errors. If a data stream is emitted with syntax errors of this magnitude, the content had better be valuable the fixes you make are going to be incredibly fragile.
For example, in order to clean showParams, you need to detect unescaped quotes and escape them. For the sample you could run
my $str = 'showParams: "{"revertType":null,"refresh":false,"checkpoint
+":false,"sheetName":"","unknownParams":"zone_id=6290&ac=a9aef098062f9
+646bd1638d0c6054c7b&account_id=62&Start_Date=2016-07-27&End_Date=2016
+-08-03","layoutId":""}"';
while ($str =~ /(?<!\\)"\s*\{\s*("(?:(?!\}").)*)\}"/) {
substr($str, $-[1], $+[1] - $-[1]) =~ s/(?=["\\])/\\/g;
}
but good luck maintaining that.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.