summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/parser/functions/parsejson.rb6
1 files changed, 2 insertions, 4 deletions
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