Merge branch 'pb/request-pull-verify-remote-ref'
[gitweb.git] / t / perf / aggregate.perl
index b951747e080012340f6469d26b333a239fbde1a5..66554d216122d26699e425b35166de460fa3821f 100755 (executable)
@@ -3,7 +3,6 @@
 use lib '../../perl/build/lib';
 use strict;
 use warnings;
-use JSON;
 use Getopt::Long;
 use Git;
 use Cwd qw(realpath);
@@ -343,7 +342,8 @@ sub print_codespeed_results {
                }
        }
 
-       print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
+       require JSON;
+       print JSON::to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
 }
 
 binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";