Skip to content

Commit fddc888

Browse files
committed
Fix "null" display in colored JSON output
"null" was previously rendered in "bright black", an ANSI color that is not guaranteed to be visible at all depending on the terminal. Switch the color to cyan to ensure that "null" is visible.
1 parent 026b07d commit fddc888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/jsoncolor/jsoncolor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
const (
1111
colorDelim = "1;38" // bright white
1212
colorKey = "1;34" // bright blue
13-
colorNull = "1;30" // gray
13+
colorNull = "36" // cyan
1414
colorString = "32" // green
1515
colorBool = "33" // yellow
1616
)

0 commit comments

Comments
 (0)