summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/localconfig-as-json10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/localconfig-as-json b/scripts/localconfig-as-json
index 329840ea5..f994e10c5 100755
--- a/scripts/localconfig-as-json
+++ b/scripts/localconfig-as-json
@@ -21,6 +21,12 @@ BEGIN {
use Bugzilla;
BEGIN { Bugzilla->extensions };
-use JSON::XS;
+use JSON::MaybeXS;
-print JSON::XS->new->canonical->utf8->ascii->encode(Bugzilla->localconfig); \ No newline at end of file
+my $json = JSON::MaybeXS->new(
+ canonical => 1,
+ utf8 => 1,
+ ascii => 1,
+);
+
+print $json->encode(Bugzilla->localconfig);