X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsg_template%2Fhttp.pm;h=12269a17114df6bfd102d8d4d8fcc3cd3f3eab74;hb=a5bfed744069d69a1fe07eca1a64a2b22692cc22;hp=9c4e68bd7f9b720cd76de3675c00ceb0a0ee7d05;hpb=2b2dd969f3c18751afc583ad1e836ab8e6f73b5d;p=freeside.git diff --git a/FS/FS/msg_template/http.pm b/FS/FS/msg_template/http.pm index 9c4e68bd7..12269a171 100644 --- a/FS/FS/msg_template/http.pm +++ b/FS/FS/msg_template/http.pm @@ -7,7 +7,7 @@ use vars qw( $DEBUG $conf ); # needed to talk to the external service use LWP::UserAgent; use HTTP::Request::Common; -use JSON; +use Cpanel::JSON::XS; # needed to manage prepared messages use FS::cust_msg; @@ -45,7 +45,7 @@ sub prepare { my( $self, %opt ) = @_; - my $json = JSON->new->canonical(1); + my $json = Cpanel::JSON::XS->new->canonical(1); my $cust_main = $opt{'cust_main'}; # or die 'cust_main required'; my $object = $opt{'object'} or die 'object required';