How would you make an erb template that has human readable json?
The following code works, but it makes a flat json file
default.rb
default[\'
Something like this would also work:
file "/var/my-file.json" do content Chef::JSONCompat.to_json_pretty(node['foo']['bar'].to_hash) end