MCPcopy Create free account
hub / github.com/buger/jsonparser / Get

Method Get

config.go:31–34  ·  view source on GitHub ↗

Get returns the value addressed by keys using c's parsing options. SYS-REQ-115

(data []byte, keys ...string)

Source from the content-addressed store, hash-verified

29// Get returns the value addressed by keys using c's parsing options.
30// SYS-REQ-115
31func (c Config) Get(data []byte, keys ...string) ([]byte, ValueType, int, error) {
32 value, dataType, _, endOffset, err := internalGetConfig(c, data, keys...)
33 return value, dataType, endOffset, err
34}
35
36// GetString returns the decoded string addressed by keys using c's parsing
37// options.

Callers 13

GetStringMethod · 0.95
TestConfigGetFunction · 0.45
TestConfigRoundTripFunction · 0.45
TestCompilePathRoundTripFunction · 0.45
arrayEachConfigFunction · 0.45
objectEachConfigFunction · 0.45
BenchmarkUjsonSmallFunction · 0.45

Calls 1

internalGetConfigFunction · 0.85

Tested by 10

TestConfigGetFunction · 0.36
TestConfigRoundTripFunction · 0.36
TestCompilePathRoundTripFunction · 0.36
BenchmarkUjsonSmallFunction · 0.36
BenchmarkUjsonMediumFunction · 0.36