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.