Registry / serialization / palantir-pkg-safejson

palantir-pkg-safejson

JSON →
library1.2.0gogounverified

Provides safe and consistent JSON marshaling and unmarshaling with HTML escaping disabled and UseNumber enabled by default.

go get github.com/palantir/pkg/safejson
INSTALL
IMPORT
SIG · PALANTIR-PKG-SAFEJ
P
palantir-pkg-safejson
serializationgov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

safejson
github.com/palantir/pkg/safejson

Marshals a map to JSON using safejson.

package main import ( "fmt" "github.com/palantir/pkg/safejson" ) func main() { data, err := safejson.Marshal(map[string]int{"a": 1}) if err != nil { panic(err) } fmt.Println(string(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
palantir-pkg-safejson — go get palantir-pkg-safejson · libregistry