Puppet Function: sensu_sorted_json

Defined in:
lib/puppet/functions/sensu_sorted_json.rb
Function type:
Ruby 4.x API

Overview

sensu_sorted_json(Hash $hash, Optional[Boolean] $pretty)String

This function takes unsorted hash and outputs JSON object making sure the keys are sorted. Optionally you can pass a boolean as the second parameter, which controls if the output is pretty formatted.