diff options
Diffstat (limited to 'types/netmap/netmap.go')
| -rw-r--r-- | types/netmap/netmap.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/netmap/netmap.go b/types/netmap/netmap.go index cc6bec1db..ad13c2928 100644 --- a/types/netmap/netmap.go +++ b/types/netmap/netmap.go @@ -6,7 +6,7 @@ package netmap import ( "cmp" - "encoding/json" + jsonv1 "encoding/json" "fmt" "net/netip" "sort" @@ -438,7 +438,7 @@ func (b *NetworkMap) ConciseDiffFrom(a *NetworkMap) string { } func (nm *NetworkMap) JSON() string { - b, err := json.MarshalIndent(*nm, "", " ") + b, err := jsonv1.MarshalIndent(*nm, "", " ") if err != nil { return fmt.Sprintf("[json error: %v]", err) } |
