I think you are confusing the OO and Functional interfaces. Use either OO
my $json = JSON->new; $json->canonical(1); my $json_str = $json->encode($hashref); print $json_str;
or Functional
pojmy $json_str = to_json($hashref, {canonical => 1});
In reply to Re^13: CGI Action call
by poj
in thread CGI Action call
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |