Registry / serialization / ajeddeloh-go-json

ajeddeloh-go-json

JSON →
library0.0.0-20211014194832-fbf275e0dd03gogounverified

A fork of the Go standard library's encoding/json package with additional features or fixes.

go get github.com/ajeddeloh/go-json
INSTALL
IMPORT
SIG · AJEDDELOH-GO-JSON
A
ajeddeloh-go-json
serializationgov0.0.0-20211014194832-fbf275e0dd03
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/ajeddeloh/go-json

Marshal a struct to JSON.

package main import ( "fmt" "github.com/ajeddeloh/go-json" ) func main() { type Person struct { Name string `json:"name"` } p := Person{Name: "Alice"} b, _ := json.Marshal(p) fmt.Println(string(b)) }
Debug
Known issues
gotchaThis package may conflict with the standard library 'encoding/json' package when imported.
fix
Use an import alias, e.g., import myjson "github.com/ajeddeloh/go-json"
affects: all
Upgrade
Version history
0.0.0-20211014194832-fbf275e0dd03latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
ajeddeloh-go-json — go get ajeddeloh-go-json · libregistry