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

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