Puppet Function: sensu_sorted_json
- Defined in:
- lib/puppet/functions/sensu_sorted_json.rb
- Function type:
- Ruby 4.x API
Overview
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.