Registry / serialization / kawamuray-jsonpath

kawamuray-jsonpath

JSON →
library0.0.0-20210127151053-2ab0d7f0a6adgogounverified

Go implementation of JSONPath for querying JSON data.

go get github.com/kawamuray/jsonpath
INSTALL
IMPORT
SIG · KAWAMURAY-JSONPATH
K
kawamuray-jsonpath
serializationgov0.0.0-20210127151053-2ab0d7f0a6ad
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.

jsonpath
github.com/kawamuray/jsonpath

Query a JSON object using a JSONPath expression.

package main import ( "fmt" "github.com/kawamuray/jsonpath" ) func main() { data := []byte(`{"foo": {"bar": "baz"}}`) result, err := jsonpath.Get(data, "$.foo.bar") if err != nil { fmt.Println(err) } else { fmt.Printf("%s\n", result) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210127151053-2ab0d7f0a6adlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kawamuray-jsonpath — go get kawamuray-jsonpath · libregistry