Migrate contentjson and badjson to library &

Add omitempty in format
This commit is contained in:
世界 2023-12-01 20:15:11 +08:00
parent e09a94bb9e
commit 38d28e0763
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
38 changed files with 48 additions and 508 deletions

View file

@ -1,7 +1,6 @@
package trafficontrol
import (
"encoding/json"
"net"
"net/netip"
"time"
@ -10,6 +9,7 @@ import (
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/atomic"
"github.com/sagernet/sing/common/bufio"
"github.com/sagernet/sing/common/json"
N "github.com/sagernet/sing/common/network"
"github.com/gofrs/uuid/v5"