Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/utils/json/doc.go
2070 views
1
// Package json provides fast JSON encoding and decoding functionality.
2
//
3
// On supported platforms; Linux, Darwin, or Windows on amd64, or on arm64 with
4
// Go >= 1.20 and <= 1.25, the package uses the high-performance [sonic] library.
5
// On any other systems, it gracefully falls back to using the [go-json]
6
// implementation.
7
//
8
// This package acts as a wrapper around the underlying JSON APIs, offering
9
// standard operations such as marshaling, unmarshaling, and working with JSON
10
// encoders/decoders. It maintains compatibility with the standard encoding/json
11
// interfaces while delivering improved performance when possible.
12
//
13
// Additionally, it defines the customary [Marshaler] and [Unmarshaler]
14
// interfaces to facilitate custom JSON encoding and decoding implementations.
15
//
16
// TODO(dwisiswant0): This package should be moved to the
17
// [github.com/projectdiscovery/utils/json], but let see how it goes first.
18
package json
19
20