Agreed. It is just that I am treating that "\/Date(<epoch>)\/" as a basic string enclosed in double quotes. My problem is with those single backslashes getting replaces by double backslashes.
Um no. In the OP you have double backslashes; you start with double backslashes;
use JSON qw/ to_json /; my @fudge = "\/Date(<epoch>)\/"; print to_json( \@fudge ); __END__ ["/Date(<epoch>)/"]
In reply to Re^3: Json epoch datetime with perl
by Anonymous Monk
in thread Json epoch datetime with perl
by gurpreetsingh13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |