in reply to Re^12: CGI Action call
in thread CGI Action call
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});
|
|---|