From: Nan Liu Date: Tue, 25 Oct 2011 22:54:47 +0000 (-0700) Subject: (#10285) Refactor json to use pson instead. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b58810089f783205ffdb840dc254a1d3e9f84b88;p=puppet-stdlib.git (#10285) Refactor json to use pson instead. Remove json requirement since puppet already provides pson which is equivalent. --- 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