Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/utils/json/json_fallback.go
2842 views
1
//go:build !(linux || darwin || windows) || !(amd64 || arm64)
2
3
package json
4
5
import "github.com/goccy/go-json"
6
7
// Exported functions from the [json] package.
8
var (
9
Marshal = json.Marshal
10
Unmarshal = json.Unmarshal
11
MarshalIndent = json.MarshalIndent
12
NewDecoder = json.NewDecoder
13
NewEncoder = json.NewEncoder
14
)
15
16
// Encoder is a JSON encoder.
17
type Encoder = json.Encoder
18
19
// Decoder is a JSON decoder.
20
type Decoder = json.Decoder
21
22