diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-02-05 23:36:19 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-02-09 14:21:51 +0000 |
commit | b029f3d084b0dbd4136f7fd48d2e222edc683b6f (patch) | |
tree | bb565e639e3a792e9412a22e8e02caf424d491b7 /bin | |
parent | cf80773fa925f36a7c43b5f7eb1bcf7f56593796 (diff) |
Switch final few JSON uses to JSON::MaybeXS.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-all-reports | 4 |
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, } ); |