MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / parseJSON

Method parseJSON

pkg/util/json/config.go:76–85  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

74}
75
76func (c parseConfig) parseJSON(s string) (JSON, error) {
77 switch c.impl {
78 case useStdGoJSON:
79 return parseJSONGoStd(s, c)
80 case useFastJSONParser:
81 return parseUsingFastParser(s, c)
82 default:
83 return nil, errors.AssertionFailedf("invalid ParseJSON implementation %v", c.impl)
84 }
85}
86
87type funcOpt func(cfg *parseConfig)
88

Callers 1

ParseJSONFunction · 0.80

Calls 2

parseJSONGoStdFunction · 0.85
parseUsingFastParserFunction · 0.85

Tested by

no test coverage detected