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

Function jsonDecodeError

pkg/util/json/json.go:1032–1037  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1030}
1031
1032func jsonDecodeError(err error) error {
1033 return pgerror.Wrapf(
1034 errors.Handled(err),
1035 pgcode.InvalidTextRepresentation,
1036 "unable to decode JSON")
1037}
1038
1039// ParseJSON takes a string of JSON and returns a JSON value.
1040func ParseJSON(s string, opts ...ParseOption) (JSON, error) {

Callers 2

parseUsingFastParserFunction · 0.85
parseJSONGoStdFunction · 0.85

Calls 1

WrapfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…