Registry / serialization / jeffail-gabs

jeffail-gabs

JSON →
library1.4.0gogounverified

Package gabs implements a simplified wrapper around creating and parsing unknown or dynamic JSON.

go get github.com/Jeffail/gabs
INSTALL
IMPORT
SIG · JEFFAIL-GABS
J
jeffail-gabs
serializationgov1.4.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.

gabs
github.com/Jeffail/gabs

Minimal example parsing JSON and accessing a nested value.

package main import ( "fmt" "github.com/Jeffail/gabs" ) func main() { jsonParsed, _ := gabs.ParseJSON([]byte(`{"name":"John"}`)) name, _ := jsonParsed.Path("name").Data().(string) fmt.Println(name) }
Debug
Known issues
gotchaThe import path uses uppercase 'Jeffail' which may cause issues on case-sensitive systems.
fix
Use the lowercase import path 'github.com/jeffail/gabs' (the canonical import path).
affects: >=0.0.0
Upgrade
Version history
1.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jeffail-gabs — go get jeffail-gabs · libregistry