aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-all-reports
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-02-05 23:36:19 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-02-09 14:21:51 +0000
commitb029f3d084b0dbd4136f7fd48d2e222edc683b6f (patch)
treebb565e639e3a792e9412a22e8e02caf424d491b7 /bin/update-all-reports
parentcf80773fa925f36a7c43b5f7eb1bcf7f56593796 (diff)
Switch final few JSON uses to JSON::MaybeXS.
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-xbin/update-all-reports4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports
index 60da837e9..d951756e4 100755
--- a/bin/update-all-reports
+++ b/bin/update-all-reports
@@ -22,7 +22,7 @@ use FixMyStreet::DB;
use File::Path ();
use File::Slurp;
-use JSON;
+use JSON::MaybeXS;
use List::MoreUtils qw(zip);
my $fourweeks = 4*7*24*60*60;
@@ -89,7 +89,7 @@ if ( FixMyStreet->config('BASE_URL') =~ /emptyhomes/ ) {
}
}
-my $body = JSON->new->utf8(1)->encode( {
+my $body = encode_json( {
fixed => \%fixed,
open => \%open,
} );