func newResult()

in wasm/internal/ottlplayground.go [46:56]


func newResult(json string, err string, logs string, executionTime int64) map[string]any {
	v := map[string]any{
		"value":         json,
		"logs":          logs,
		"executionTime": executionTime,
	}
	if err != "" {
		v["error"] = err
	}
	return v
}