github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/json/std.go (about)

     1  //go:build !go1.20 || without_contextjson
     2  
     3  package json
     4  
     5  import "encoding/json"
     6  
     7  var (
     8  	Marshal    = json.Marshal
     9  	Unmarshal  = json.Unmarshal
    10  	NewEncoder = json.NewEncoder
    11  	NewDecoder = json.NewDecoder
    12  )
    13  
    14  type (
    15  	Encoder     = json.Encoder
    16  	Decoder     = json.Decoder
    17  	Token       = json.Token
    18  	Delim       = json.Delim
    19  	SyntaxError = json.SyntaxError
    20  	RawMessage  = json.RawMessage
    21  )