From fd78d6dd683766176308fb827ce7ecceec6706f8 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 16 Aug 2023 09:46:04 -0400 Subject: [PATCH] [CI] Use Perl Core module JSON::PP --- scripts/normalize-cspell-front-matter.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/normalize-cspell-front-matter.pl b/scripts/normalize-cspell-front-matter.pl index aa9990bb30a7..6cb4b734a523 100755 --- a/scripts/normalize-cspell-front-matter.pl +++ b/scripts/normalize-cspell-front-matter.pl @@ -2,7 +2,7 @@ use strict; use warnings; -use JSON; +use JSON::PP; use FileHandle; my @words; @@ -48,7 +48,7 @@ sub getSiteWideDictWords { # Remove JSON comments $json_text =~ s/^\s*\/\/.*$//mg; - my $json = JSON->new; + my $json = JSON::PP->new; my $data = $json->decode($json_text); my %dictionary = map { $_ => 1 } @{ $data->{words} };