// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package utils import "encoding/json" // Dump pretty prints the provided arg as json. func Dump(v any) string { b, err := json.MarshalIndent(v, "", " ") if err != nil { return "" } return string(b) }