class TerraformLandscape::TerraformPlan

def to_pretty_json(value)

def to_pretty_json(value)
  # Can't JSON.parse an empty string, so handle it separately
  return '' if value.strip.empty?
  JSON.pretty_generate(JSON.parse(value),
                       {
                         indent: '  ',
                         space: ' ',
                         object_nl: "\n",
                         array_nl: "\n"
                       })
end