Skip to content

Commit 97d1c69

Browse files
committed
Merge pull request #19 from nanliu/ticket/10285
(#10285) Refactor json to use pson instead.
2 parents d65fafd + b588100 commit 97d1c69

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/puppet/parser/functions/parsejson.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ module Puppet::Parser::Functions
1515
end
1616

1717
json = arguments[0]
18-
19-
require 'json'
20-
21-
JSON.load(json)
2218

19+
# PSON is natively available in puppet
20+
PSON.load(json)
2321
end
2422
end
2523

0 commit comments

Comments
 (0)