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.
gojsonpointer
✓ github.com/xeipuuv/gojsonpointer
Resolve a JSON Pointer against a document
package main
import (
"fmt"
"github.com/xeipuuv/gojsonpointer"
)
func main() {
pointer, _ := gojsonpointer.NewJsonPointer("/foo/bar")
document := map[string]interface{}{"foo": map[string]interface{}{"bar": "value"}}
result, _, err := pointer.Get(document)
if err != nil {
panic(err)
}
fmt.Println(result)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20190905194746-02993c407bfblatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.