OutputJSON writes data as indented JSON to stdout or a file.
func OutputJSON(data any, filePath string) errorOutputJSON writes data as indented JSON to stdout or a file. If filePath is non-empty, writes to file and prints status to stderr. Stdout output goes through the active --jq expression; files keep the full data.