diff --git a/conversion_helpers.go b/conversion_helpers.go index 3345acd..d786843 100644 --- a/conversion_helpers.go +++ b/conversion_helpers.go @@ -1,6 +1,7 @@ package asynqmon import ( + "encoding/json" "time" "unicode" "unicode/utf8" @@ -226,6 +227,9 @@ func isPrintable(data []byte) bool { if !utf8.Valid(data) { return false } + if json.Valid(data) { + return true + } isAllSpace := true for _, r := range string(data) { if !unicode.IsPrint(r) {