5 module Puppet::Parser::Functions
6 newfunction(:parsejson, :type => :rvalue, :doc => <<-EOS
7 This function accepts JSON as a string and converts into the correct Puppet
12 if (arguments.size != 1) then
13 raise(Puppet::ParseError, "parsejson(): Wrong number of arguments "+
14 "given #{arguments.size} for 1")
19 # PSON is natively available in puppet
24 # vim: set ts=2 sw=2 et :