Skip to content

Commit ec663bc

Browse files
committed
restore json v2
1 parent 0bd8c17 commit ec663bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"bytes"
55
"context"
6-
"encoding/json"
76
"encoding/json/jsontext"
7+
"encoding/json/v2"
88
"fmt"
99
"io"
1010
"log"
@@ -292,7 +292,7 @@ Make sure to chmod 700 the directory and 600 the config file to protect your tok
292292
if err != nil {
293293
log.Fatalf("masked email: %v", err)
294294
}
295-
fastmaskResponseJSON, err := json.MarshalIndent(fastmaskResponse, "", " ")
295+
fastmaskResponseJSON, err := json.Marshal(fastmaskResponse)
296296
if err != nil {
297297
log.Fatalf("response marshal: %v", err)
298298
}

0 commit comments

Comments
 (0)