Registry / serialization / flynn-json5

flynn-json5

JSON →
library1.0.0gogounverified

Package json5 implements decoding of JSON5 values, a superset of JSON that supports comments and trailing commas.

go get github.com/flynn/json5
INSTALL
IMPORT
SIG · FLYNN-JSON5
F
flynn-json5
serializationgov1.0.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.

json5
github.com/flynn/json5

Unmarshals a JSON5 string with comments into a map.

package main import ( "log" "github.com/flynn/json5" ) func main() { var data map[string]interface{} if err := json5.Unmarshal([]byte(`{/* comment */ "key": "value"}`), &data); err != nil { log.Fatal(err) } log.Println(data) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flynn-json5 — go get flynn-json5 · libregistry