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?
  sorted = recursive_sort(JSON.parse(value))
  JSON.pretty_generate(sorted,
                       {
                         indent: '  ',
                         space: ' ',
                         object_nl: "\n",
                         array_nl: "\n"
                       })
end