Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit c6d9ea1

Browse files
committed
force requests to be made with canonical json
1 parent e3d0c36 commit c6d9ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebService/Plotly.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ sub _makecall {
160160
{
161161
no warnings 'once';
162162
local *PDL::TO_JSON = sub { $_[0]->unpdl };
163-
my $convert = sub { JSON->new->utf8->convert_blessed( 1 )->encode( $_[0] ) };
163+
my $convert = sub { JSON->new->utf8->convert_blessed( 1 )->canonical( 1 )->encode( $_[0] ) };
164164
$json_args = $convert->( $args );
165165
$json_kwargs = $convert->( \%kwargs );
166166
}

0 commit comments

Comments
 (0)