Registry / serialization / tinode-jsonco

tinode-jsonco

JSON →
library1.0.0gogounverified

An io.Reader wrapper for JSON with C-style comments, with offset-to-line/character translation.

go get github.com/tinode/jsonco
INSTALL
IMPORT
SIG · TINODE-JSONCO
T
tinode-jsonco
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.

jsonco
github.com/tinode/jsonco

Read JSON with comments

package main import ( "fmt" "strings" "github.com/tinode/jsonco" ) func main() { input := strings.NewReader("{\"key\": /* comment */ \"value\"}") reader := jsonco.NewReader(input) buf := make([]byte, 100) n, _ := reader.Read(buf) fmt.Println(string(buf[:n])) }
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
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
tinode-jsonco — go get tinode-jsonco · libregistry