Registry / serialization / tidwall-sjson

tidwall-sjson

JSON →
library1.2.5gogounverified

Package sjson provides setting json values.

go get github.com/tidwall/sjson
INSTALL
IMPORT
SIG · TIDWALL-SJSON
T
tidwall-sjson
serializationgov1.2.5
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.

sjson
github.com/tidwall/sjson

Set a value in a JSON string using a path.

package main import ( "fmt" "github.com/tidwall/sjson" ) func main() { json := `{"name":{"first":"Janet","last":"Prichard"},"age":47}` value, _ := sjson.Set(json, "name.last", "Smith") fmt.Println(value) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
tidwall-sjson — go get tidwall-sjson · libregistry