diff options
Diffstat (limited to 'FS/FS/TaxEngine')
-rw-r--r-- | FS/FS/TaxEngine/avalara.pm | 4 | ||||
-rw-r--r-- | FS/FS/TaxEngine/suretax.pm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/TaxEngine/avalara.pm b/FS/FS/TaxEngine/avalara.pm index fd6e324..cb841c3 100644 --- a/FS/FS/TaxEngine/avalara.pm +++ b/FS/FS/TaxEngine/avalara.pm @@ -8,11 +8,11 @@ use FS::cust_pkg; use FS::cust_location; use FS::cust_bill_pkg; use FS::tax_rate; -use JSON; +use Cpanel::JSON::XS; use Geo::StreetAddress::US; our $DEBUG = 0; -our $json = JSON->new->pretty(1); +our $json = Cpanel::JSON::XS->new->pretty(1); our $conf; diff --git a/FS/FS/TaxEngine/suretax.pm b/FS/FS/TaxEngine/suretax.pm index 4e7edd5..073d19b 100644 --- a/FS/FS/TaxEngine/suretax.pm +++ b/FS/FS/TaxEngine/suretax.pm @@ -4,7 +4,7 @@ use strict; use base 'FS::TaxEngine'; use FS::Conf; use FS::Record qw(qsearch qsearchs dbh); -use JSON; +use Cpanel::JSON::XS; use XML::Simple qw(XMLin); use LWP::UserAgent; use HTTP::Request::Common; @@ -14,7 +14,7 @@ our $DEBUG = 1; # prints progress messages # $DEBUG = 2; # prints decoded request and response (noisy, be careful) # $DEBUG = 3; # prints raw response from the API, ridiculously unreadable -our $json = JSON->new->pretty(1); +our $json = Cpanel::JSON::XS->new->pretty(1); our %taxproduct_cache; |