Registry / serialization / pschlump-json

pschlump-json

JSON →
library1.12.1gogounverified

Package json implements encoding and decoding of JSON as defined in RFC 4627, with modifications to ignore unsupported types.

go get github.com/pschlump/json
INSTALL
IMPORT
SIG · PSCHLUMP-JSON
P
pschlump-json
serializationgov1.12.1
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/pschlump/json

Marshal a struct to JSON using the modified json package.

package main import ( "fmt" "github.com/pschlump/json" ) func main() { type Person struct { Name string `json:"name"` } p := Person{Name: "Alice"} data, _ := json.Marshal(p) fmt.Println(string(data)) }
Debug
Known issues
gotchaThis fork ignores unsupported types during marshaling, which may silently drop data.
fix
Ensure all fields are JSON-serializable or use standard encoding/json for strict behavior.
affects: >=1.0.0
Upgrade
Version history
1.12.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
pschlump-json — go get pschlump-json · libregistry