MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / mustDecode

Method mustDecode

pkg/util/json/encoded.go:509–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507}
508
509func (j *jsonEncoded) mustDecode() JSON {
510 decoded, err := j.shallowDecode()
511 if err != nil {
512 panic(errors.NewAssertionErrorWithWrappedErrf(err, "invalid JSON data: %v", j.value))
513 }
514 return decoded
515}
516
517// decode should be used in cases where you will definitely have to use the
518// entire decoded JSON structure, like printing it out to a string.

Callers 3

MaybeDecodeMethod · 0.95
slowContainsMethod · 0.95
subdocumentMethod · 0.95

Calls 1

shallowDecodeMethod · 0.95

Tested by

no test coverage detected