Registry / serialization / dustin-gojson

dustin-gojson

JSON →
library0.0.0-20160307161227-2e71ec9dd5adgogounverified

Package json implements encoding and decoding of JSON objects as defined in RFC 4627.

go get github.com/dustin/gojson
INSTALL
IMPORT
SIG · DUSTIN-GOJSON
D
dustin-gojson
serializationgov0.0.0-20160307161227-2e71ec9dd5ad
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.

json
github.com/dustin/gojson

Unmarshal JSON using gojson.

package main import ( "fmt" "github.com/dustin/gojson" ) func main() { type Person struct { Name string `json:"name"` } var p Person err := json.Unmarshal([]byte(`{"name":"Alice"}`), &p) if err != nil { panic(err) } fmt.Println(p.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160307161227-2e71ec9dd5adlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dustin-gojson — go get dustin-gojson · libregistry