summaryrefslogtreecommitdiff
path: root/compat/json/compat.go
diff options
context:
space:
mode:
Diffstat (limited to 'compat/json/compat.go')
-rw-r--r--compat/json/compat.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/json/compat.go b/compat/json/compat.go
index c96470d..0b86732 100644
--- a/compat/json/compat.go
+++ b/compat/json/compat.go
@@ -15,6 +15,7 @@ import (
"strconv"
"git.lukeshu.com/go/lowmemjson"
+ "git.lukeshu.com/go/lowmemjson/internal/fastio"
)
//nolint:stylecheck // ST1021 False positive; these aren't comments on individual types.
@@ -172,7 +173,7 @@ func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
}
func Valid(data []byte) bool {
- formatter := lowmemjson.NewReEncoder(io.Discard, lowmemjson.ReEncoderConfig{
+ formatter := lowmemjson.NewReEncoder(fastio.Discard, lowmemjson.ReEncoderConfig{
Compact: true,
})
_, err := formatter.Write(data)