From b58810089f783205ffdb840dc254a1d3e9f84b88 Mon Sep 17 00:00:00 2001 From: Nan Liu Date: Tue, 25 Oct 2011 15:54:47 -0700 Subject: (#10285) Refactor json to use pson instead. Remove json requirement since puppet already provides pson which is equivalent. --- lib/puppet/parser/functions/parsejson.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/puppet/parser/functions/parsejson.rb b/lib/puppet/parser/functions/parsejson.rb index cf3b12c..a9a16a4 100644 --- a/lib/puppet/parser/functions/parsejson.rb +++ b/lib/puppet/parser/functions/parsejson.rb @@ -15,11 +15,9 @@ structure. end json = arguments[0] - - require 'json' - - JSON.load(json) + # PSON is natively available in puppet + PSON.load(json) end end -- cgit v1.2.3