Registry /
config / knadh-koanf-parsers-json
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.
json
✓ github.com/knadh/koanf/parsers/json
Load JSON configuration into koanf
package main
import (
"fmt"
"github.com/knadh/koanf/parsers/json"
"github.com/knadh/koanf/providers/rawbytes"
"github.com/knadh/koanf/v2"
)
func main() {
k := koanf.New(".")
k.Load(rawbytes.Provider([]byte(`{"key": "value"}`)), json.Parser())
fmt.Println(k.String("key"))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.